mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5935] [MERGED] Issue Sweep: lorebook persistence and Game portraits #6997
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#6997
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/5935
Author: @SpicyMarinara
Created: 9/7/2026
Status: ✅ Merged
Merged: 9/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/issue-sweep-generation-sep7📝 Commits (5)
b018d0achore: claim assigned lorebook and Game avatar issuesbb22f70fix: preserve selected lorebooks and Game NPC portrait identity3f1d989Merge remote-tracking branch 'origin/staging' into fix/issue-sweep-generation-sep792830c9fix(game): remove unrelated speaker fallback and reuse loaded metadata63abb86fix(game): use refreshed party scope for queued portraits📊 Changes
14 files changed (+352 additions, -198 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)➕
e2e/game-npc-portraits.e2e.ts(+125 -0)📝
packages/client/src/components/game/GameSurface.tsx(+20 -142)📝
packages/server/src/routes/chats.routes.ts(+1 -0)📝
packages/server/src/routes/game.routes.ts(+25 -54)📝
packages/server/src/routes/generate.routes.ts(+6 -0)📝
packages/server/src/routes/generate/agent-write-approval.ts(+2 -0)📝
packages/server/src/routes/generate/lorebook-keeper-utils.ts(+4 -1)📝
packages/server/src/routes/generate/retry-agents-route.ts(+5 -0)📝
packages/server/src/services/game/npc-avatar-utils.ts(+15 -0)📝
packages/server/src/services/lorebook/keyword-scanner.ts(+2 -1)➕
scripts/regressions/grouped-sticky-lorebook.regression.ts(+57 -0)➕
scripts/regressions/lorebook-selected-target.regression.ts(+65 -0)➕
scripts/regressions/npc-avatar-lan.regression.ts(+21 -0)📄 Description
Linked issue
Closes #5913, #5907, #5885, #5887.
Why this change
Assigned issue sweep for @SpicyMarinara. Sticky group entries were competing with fresh matches before their lifetime expired. Model-proposed Lorebook Keeper destinations could override the selected target. Game portrait paths still searched unrelated library cards and could replace a campaign NPC's portrait; legacy loopback URLs failed on LAN clients.
What changed
Automated evidence
pnpm checkpassed;pnpm check:e2e-typespassed after adding the browser proof.pnpm regression:promptandopen-issues.regression.tspassed.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Manually verify a real Lorebook Keeper automatic run and retry with a selected target, a grouped lorebook through its sticky duration, and Game portraits on a second LAN device. Automated browser emulation is not a physical iPhone claim. No downloadable-agent prompts or packages were changed.
Docs and release impact
docs-i18nupdated or a follow-up issue openedUI evidence
Existing Game portrait presentation is reused; desktop and both mobile browser projects exercise the real narration surface.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.