mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #813] The Pixelforge world setup picker offers lorebook entries the chat has already switched off #418
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#418
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 (Sep 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/813
Originally assigned to: @SpicyMarinara, @kolacheee on GitHub.
When you set up a Pixelforge world, the "World knowledge" list offers lorebook entries - and whole lorebooks - that this chat has switched off. They look exactly like the ones that are on, "Select all" ticks them too, and nothing tells you they are off for this chat. Tick one and it is used anyway; tick an entry under a book the chat has excluded and the tick does nothing at all, with no message either way.
How to reproduce (try it yourself)
Precondition: Lorebooks -> New lorebook, name it
Harbor Lore, leave it enabled. Add an entrySHRINE-LORE(keyshrine, contentThe shrine on the cliff.) and a second entryDOCKMASTER(keydock, contentThe dockmaster keeps the ledger.). Leave both enabled. Do not tick Global - the default is off, and that matters for step 4.setup, which is the only state the setup screen can be re-entered from. After a launch that succeeds, the status isreadyand nothing reopens the setup screen.SHRINE-LOREoff. The row says this switch is for this chat only; check the Lorebooks page and confirm the shared entry is still on.Harbor Loreexpander.What you'll see:
SHRINE-LOREis listed with a live checkbox, identical toDOCKMASTER- no strike-through, no "off for this chat" note - and "Select all" ticks it. Tick it and launch, and the generated world is written with "The shrine on the cliff." in its lore. For the other direction, go back to Chat Settings and switch the wholeHarbor Lorebook off for this chat instead: the picker still lists the book and still offers its entries, but ticking them does nothing at all - the server discards every entry of a book the chat excludes, silently.What should happen: the picker should not offer content this chat has switched off. Hide those rows, or show them greyed out with the reason, and keep "Select all" out of them.
Where it is
packages/pixelforge/src/80-setup.jsat49a9c10c, in the setup view's lorebook loader::679-const rows = await PF.api.getJson(\/lorebooks/${encodeURIComponent(book.id)}/entries`);`:686-.filter((row) => row.enabled !== false && row.enabled !== "false"):629-if (book.enabled === false || book.enabled === "false") continue;(the book-level filter; the comment above it citeslistEligibleEntriesByIds)Both filters are in the shipped 0.16.3 bundle too (
packages/pixelforge/client.js:25919and:25976). The picker never reads the chat at all - nochatId,entryStateOverridesorexcludedLorebookIdsappears anywhere in the file.What's happening
GET /lorebooks/{id}/entriesis the shared, chat-blind list (Enginepackages/server/src/routes/lorebooks.routes.ts:595-597is a plainstorage.listEntries(id)), so the only thing the picker can filter on is the library-wide on/off flag. The per-chat switches live elsewhere - on the chat's own metadata asentryStateOverridesandexcludedLorebookIds- and the picker never looks there. The comment justifying the filter ("the server refuses one anyway") is true of the library-wide flag it filters on; it does not cover the per-chat flag, which did not exist when the picker was written. For a book the chat excludes the server does refuse, unconditionally and without a word, so those rows are controls that cannot do anything; for an entry the chat has switched off the server currently honours the tick, which is the paired Engine bug.The window is narrow: boxes start unticked, and the setup screen is only re-enterable while the campaign's first turn has not happened, so the chat has to have been given per-chat switches before play starts.
Suggested fix
Make the picker ask the chat what it has switched off, once, when it loads. Nothing new is needed on the Engine side: the host already passes the chat id into the setup view (
packages/client/src/components/game/NewGameExperienceChooser.tsx:272-279), andGET /api/chats/{chatId}already returnsmetadata.entryStateOverridesandmetadata.excludedLorebookIds. With that in hand, drop (or render disabled, with a short reason) any entry whose override saysenabled: falseand any book the chat excludes, and have "Select all" work off the same filtered list. If the chat read fails, fall back to today's behaviour rather than blocking setup.Context
The picker shipped with #749 in Pixelforge 0.16.2 and is in users' hands today as 0.16.3 (PR #761 later reworked the same lore code for context limits, unrelated to on/off state). The per-chat entry switch the picker fails to notice shipped afterwards, in Engine PR #5981 (Engine issue #5954, merged 2026-09-09) - so this is a gap a newer Engine feature opened, not a picker regression; Engine #5954 deliberately set the Pixelforge picker aside as a different subsystem. Engine #3376 is the precedent for the same class of fix on the book-level case. Filed alongside its Engine half, which is that world generation honours a ticked entry the chat has switched off.
Found by an AI-assisted sweep of the merged PRs against their original issues, then re-verified against Engine staging 52799569c on 2026-09-13. Please verify before fixing.
Related issue from the same sweep: Pasta-Devs/Marinara-Engine#6126 (the Engine world-generation half).
@SpicyMarinara commented on GitHub (Sep 13, 2026):
SpicyMarinara/Codex is handling this assigned issue in the release sweep, draft PR #836. We are checking the existing linked work before changing the owning package source, preserving the separate Slurp2 work in #816, and will close this issue only once its fix and validation are on staging.