mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1440] [CLOSED] Fix message edit persistence #5089
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#5089
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1440
Author: @cha1latte
Created: 5/27/2026
Status: ❌ Closed
Base:
refactor← Head:fix/refactor-issue-1430-message-edit📝 Commits (2)
ee222b5Fix message edit persistence1f1b3ddMake message edit swipe sync atomic📊 Changes
4 files changed (+157 additions, -5 deletions)
View changed files
📝
src-tauri/crates/storage/src/lib.rs(+16 -2)📝
src-tauri/src/commands/storage/commands/entities.rs(+4 -3)📝
src-tauri/src/commands/storage/shared.rs(+134 -0)📝
src-tauri/src/http_dispatch.rs(+3 -0)📄 Description
Linked issue
Closes #1430
Why this change
messages.contentpatch, but message readback materializescontentfrom the active swipe. That left the edited top-level content overwritten by stale swipe content on reload/list/read.What changed
patch_withhook so message edits can apply the base patch and active-swipe content synchronization under one storage write lock.Refactor impact
Primary owner:
Rust storage
Impact areas reviewed:
storage_update/api/invokestorage_updateBoundary notes:
Pressure points touched:
FileStorage::patch_withshared storage primitiveValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
node scratch\issue-1430-storage-repro.mjs: afterstorage_update, bothstorage_getandstorage_liststill returnedmessage actions baselinefrom the stale active swipe.node scratch\issue-1430-storage-repro.mjs --expect-fixedagainst a freshly restarted local remote runtime:storage_get,storage_list, and active swipe content all returnedmessage actions edited.cargo test --manifest-path src-tauri/Cargo.toml message_content_update_patch --libafter the atomic storage follow-up: passed.cargo clippy --manifest-path src-tauri/Cargo.toml --workspace --all-targets -- -D warningsafter the atomic storage follow-up: passed.pnpm checkafter the atomic storage follow-up: passed.graphify update .; the command completed, but the generatedgraphify-outcache/report diff was reverted from this PR because it rewrote stale generated output unrelated to the narrow storage fix.console.*,git diff --checkpassed, andscratch/bugfix-verification.jsonproof gate passed locally.FileStorage::patch_with; the original inline thread is now outdated.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.