mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1119] [MERGED] Fix lorebook update payload persistence #4932
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#4932
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/1119
Author: @cha1latte
Created: 5/23/2026
Status: ✅ Merged
Merged: 5/23/2026
Merged by: @cha1latte
Base:
staging← Head:fix/issue-1107-lorebook-persistence📝 Commits (1)
93a7497Fix lorebook update payload persistence📊 Changes
3 files changed (+105 additions, -16 deletions)
View changed files
📝
packages/server/src/routes/game.routes.ts(+23 -4)📝
packages/server/src/routes/generate/lorebook-keeper-utils.ts(+43 -4)📝
packages/server/src/services/conversation/character-commands.ts(+39 -8)📄 Description
Linked issue
Closes #1107
Why this change
LorebookUpdateResultcontract, with entry details nested underentry.entryName/contentfields, so those nested updates could result in no persisted lorebook entry even though the model-facing flow appeared successful.What changed
entry.name,entry.content,entry.keys,entry.tag, and related fields in Lorebook Keeper persistence.update_lorebookcommands.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
packages\server\node_modules\.bin\tsx.cmd scratch/issue-1107-lorebook-persistence-repro.mjspassed after reproducing the pre-fix failure. The harness covers nested LorebookUpdateResult-shaped creates, Professor Mari nestedupdate_lorebookparsing, Game Lorebook Keeper nested session entry normalization, legacy top-level updates, malformed nested entries, and locked-entry protection.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.pnpm checkpassed. The first run timed out at 124 seconds with no failure; the rerun completed successfully.Docs and release impact
UI evidence (if applicable)
N/A - backend lorebook payload parsing/persistence fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.