mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1036
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2114
Originally assigned to: @kolacheee on GitHub.
Summary
While Bunny Review re-scanned the full tree on PR #1812 (a frontend card-CSS / conversation-avatar feature), it flagged 4 findings in the Tauri storage command layer —
src-tauri/src/commands/storage/*.rs. None are in #1812's diff (that PR touches no Rust files), and the files show no diff vsrefactor; they're pre-existing on therefactorline and surfaced only because the reviewer scans the whole tree. Filing here so the storage owner can triage independently of #1812.These are message / swipe / avatar deletion & projection correctness issues — most notably a HIGH where bulk delete can cross chat boundaries.
Findings
🔥 HIGH — Bulk delete admits foreign message IDs
src-tauri/src/commands/storage/chats.rs:612A bulk-delete pre-scan feeds message ids to the sidecar deleter without confirming they belong to the target chat, so a caller could destroy children of a different parent.
Suggested fix: Filter the pre-scan by both message id and
chatIdbefore feeding ids to the sidecar deleter, so the children destroyed are the children this parent is allowed to lose.⚠️ MEDIUM — Persona snapshot cleanup ignores avatarPath
src-tauri/src/commands/storage/avatars.rs:256Snapshot avatar cleanup recognizes
avatarUrlbut notavatarPath, so some referenced avatar files aren't handled when a snapshot is cleaned up.Suggested fix: Teach the scan to recognize every snapshot avatar URL field the contract emits — at minimum
avatarPathalongsideavatarUrl— and add the corresponding regression case.⚠️ MEDIUM — Projected active-swipe fields lose their selector
src-tauri/src/commands/storage/commands/entities.rs:229The read projection drops
activeSwipeIndexwhile still returning active-swipe-derived fields (content,characterId,extra, swipe summaries), so the returned values can't be tied back to the active swipe.Suggested fix: Restore
activeSwipeIndexto the read projection whenever active-swipe-derived fields are requested.⚠️ MEDIUM — Message swipe sidecars survive parent deletion
src-tauri/src/commands/storage/contracts.rs:396Deleting a message doesn't clean up its
message-swipessidecar, orphaning swipe data.Suggested fix: Add explicit
message-swipescleanup when a message is deleted, or make the sidecar write/delete path transactional with the parent message.Context
20bebc9b); transcribed from its walkthrough "Isolated Defects" table + repair prompts (no inline threads were created because the lines are outside that PR's diff).@kolacheee commented on GitHub (Jun 4, 2026):
working on a pr for this btw