mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1543] [Issue]: Disabled lorebook folders still allow entries to activate #788
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#788
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 @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1543
Originally assigned to: @Xelvanis on GitHub.
Found during the 2026-05-29 native Tauri Lorebooks QA pass on
origin/refactorcommitf120eb33.Proof method: seeded disposable lorebook/chat records through the app's Tauri storage API, then ran the app's own prompt-preview assembly from the native WebView. The same pass included positive controls for selected, global, character-scoped, persona-scoped, and roleplay-trigger-filtered entries.
What happened
A lorebook entry inside a disabled lorebook folder still activated and was injected into the assembled prompt.
Repro
enabled: false.Expected
Entries inside a disabled folder should not activate, matching the
LorebookFoldercontract and the folder row UI copy.Actual
The disabled-folder entry activated and appeared in the assembled prompt. In QA, the marker
LQA_DISABLED_FOLDER_CONTENT_SHOULD_NOT_APPEARappeared in prompt preview andscanActiveLorebookEntries(...)returned the entry.Likely owner
src/engine/generation/prompt-assembly.tsloads selected lorebooks and their entries, then filters entries byentry.enabled && entry.content.trim(). It does not loadlorebook-foldersor gate entries by disabled folder IDs.Related UI/docs that already promise the behavior:
src/engine/contracts/types/lorebook.tssrc/features/catalog/lorebooks/components/LorebookFolderRow.tsxsrc/features/catalog/lorebooks/hooks/use-lorebooks.tsAcceptance criteria
folderIdbelongs to a disabled folder.