mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5013] [Issue]: Storage manifest desync hides addEntry and later multi-row writes #2773
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#2773
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 @SpicyMarinara on GitHub (Aug 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5013
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Successful lorebook writes are persisted in the table file but are not added to storage/manifest.json, so the app continues serving an older state. Single-entry addEntry writes consistently become invisible, and later multi-row creates can also stop being visible.
Expected behavior
Successful lorebook writes should update the storage manifest and remain visible through lorebook.entries and lorebook.list after verification and server restarts.
Actual behavior
lorebook.addEntry returns saved: true and writes rows to lorebook_entries.json, but the corresponding manifest head is missing and the app serves the pre-write state. Repeated attempts create duplicate orphan rows. A later 11-entry lorebook.create also reported success but was not visible through lorebook.list.
Steps to reproduce
Environment
Logs, screenshots, or video
No screenshots or video provided. Evidence is in packages/server/data/storage/manifest.json, packages/server/data/storage/tables/lorebook_entries.json, and packages/server/data/storage/journal/. Journal entries exist for the ghosted writes.
Additional context
Observed during a long Home-screen assistant session on Aug 12–13, 2026. The server data directory was packages/server/data. lorebook.create with small or medium entry sets, lorebook.update for renames, and lorebook.updateEntry worked and synced the manifest; lorebook.addEntry ghosted on 5+ attempts. Restarting the server did not reconcile the manifest head. Users can silently lose visibility of saved work and create duplicate orphan rows.
Discord thread: Bug: storage manifest desync: addEntry and later multi-row create writes become invisible to the app
Discord thread link: https://discord.com/channels/1417099416812392641/1537689546303479909
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 14, 2026):
Ownership: @SpicyMarinara / Codex reproduced the reported forensic shape with two live writers sharing one data directory. Work is proceeding on
hotfix/5013-storage-single-writer; a draft PR targetingstagingis being opened before implementation. The fix will preserve storage capacity and existing lorebook behavior while preventing stale writers from overwriting newer snapshots.