mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3376] [Issue]: Game-mode world generation ignores the per-chat 👁️ lorebook disable (excludedLorebookIds not passed to processLorebooks) #1824
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#1824
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 @kolacheee on GitHub (Jul 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3376
Originally assigned to: @SpicyMarinara on GitHub.
What's wrong
Every lorebook resolution in the app honors the per-chat 👁️ "Disable in this chat" toggle (
excludedLorebookIds) — except one: Game-mode world generation. A lorebook you disabled with the eye can still be scanned into game world-gen.How to reproduce (try it yourself)
You'll see: the disabled lorebook's content is still pulled into world generation (verify via debug / Peek Prompt). Everywhere else (normal turns, previews, voice calls) it's correctly excluded.
Expected: the 👁️ disable applies to game world-gen too.
Where it is
packages/server/src/routes/game.routes.ts:5594-5600— the world-gen call:passes no
excludedLorebookIds, sofilterRelevantLorebooks(packages/server/src/services/lorebook/index.ts:246) receives an empty exclusion set and drops nothing. Contrast the roleplay path (generate.routes.ts:1229buildslorebookScopeExclusions = resolveLorebookScopeExclusions(chatMode, chatMeta)and passesexcludedLorebookIdsat every resolution call site, e.g. 1512).What's happening
This is the one lorebook-resolution call site that was never wired to the per-chat exclusion set.
Suggested fix
Near the game setup config assembly, call
resolveLorebookScopeExclusions(chatMode, chatMeta)(asgenerate.routes.ts:1229does) and addexcludedLorebookIds: lorebookScopeExclusions.excludedLorebookIdsto theprocessLorebooksoptions atgame.routes.ts:5594-5600. Check for any other game-modeprocessLorebooks/listActiveEntriescall sites with the same omission.Note: this is a distinct bug found while diagnosing a persona-lorebook report — it is NOT the cause of that report (that turned out to be a UX issue in roleplay, filed separately). This game-mode gap is real on its own.
AI-investigated against the current tree (v2.0.9); the world-gen call and the exclusion gate read and confirmed. Please verify before fixing.
@SpicyMarinara commented on GitHub (Jul 8, 2026):
Addressed in #3388 and merged to staging.