mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2192] [Issue]: Game setup Lorebook Keeper toggle writes unused metadata key #1097
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#1097
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 @Promansis on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2192
Originally assigned to: @Promansis on GitHub.
Summary
Game setup's Lorebook Keeper toggle does not enable Game Lorebook Keeper in the created game chat because the refactor writes the wrong metadata key.
Expected behavior
When a user enables Lorebook Keeper in the game setup wizard, the resulting game chat should have
gameLorebookKeeperEnabled: true, so the settings drawer, session history controls, scope exclusions, and session-end keeper flow all see the feature as enabled.Actual behavior
The setup wizard sends
enableLorebookKeeper, but the refactor game setup metadata patch storesgameEnableLorebookKeeper. Current readers usegameLorebookKeeperEnabled, so the setup toggle is effectively lost until the user manually toggles Game Lorebook Keeper again from chat settings.Steps to reproduce
gameLorebookKeeperEnabledis not set even though setup selected the feature.Impact area
Environment
mainLogs, screenshots, or video
Static trace:
enableLorebookKeeper:src/features/modes/game/components/GameSetupWizard.tsx:679gameEnableLorebookKeeper:src/features/modes/game/api/game-api.ts:943gameLorebookKeeperEnabled:src/engine/contracts/types/chat.ts:320-323,src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:694,src/features/modes/game/components/GameSurface.tsx:9080main:packages/server/src/routes/game.routes.ts:3080Regression notes
Legacy
mainpersistedgameLorebookKeeperEnabled: setupConfig.enableLorebookKeeper === trueduring game setup. The refactor has the same setup UI affordance but persists a non-consumed key.Additional context
This came from parityscan batch 6, row
07-LB-UI-keeper-controls.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: