mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7981] [MERGED] fix(lorebooks): restore failed transfers and propagate embedded sync errors #8038
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#8038
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/7981
Author: @minikkeuen
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:pr/lorebook-integrity-staging📝 Commits (4)
55c3ad0fix: roll back failed lorebook entry transfers atomically9db3adffix: propagate embedded lorebook synchronization failures to mutationse1d1223fix: roll back lorebook mutations when embedded sync fails4eda0a2fix: reject embedded imports when their character is missing📊 Changes
12 files changed (+946 additions, -256 deletions)
View changed files
📝
packages/server/src/routes/characters.routes.ts(+16 -17)📝
packages/server/src/routes/lorebook-text.routes.ts(+1 -1)📝
packages/server/src/routes/lorebooks.routes.ts(+93 -55)📝
packages/server/src/services/import/st-character.importer.ts(+27 -28)📝
packages/server/src/services/import/st-lorebook.importer.ts(+157 -143)📝
packages/server/src/services/lorebook/character-book-sync.ts(+16 -6)📝
packages/server/src/services/storage/lorebooks.storage.ts(+7 -5)➕
scripts/regressions/data-integrity-character-pointer.regression.ts(+94 -0)➕
scripts/regressions/data-integrity-embedded-sync.regression.ts(+147 -0)➕
scripts/regressions/data-integrity-lorebook-transfer.regression.ts(+80 -0)➕
scripts/regressions/data-integrity-sync-atomic.regression.ts(+304 -0)📝
scripts/regressions/lorebook-images.regression.ts(+4 -1)📄 Description
Linked issue
Closes #7980
Why this change
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAdditional automated validation:
upstream/stagingwithout merge conflicts.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
No screenshots or recordings are available. These changes address server-side data integrity and error handling without introducing UI changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.