[GH-ISSUE #1543] [Issue]: Disabled lorebook folders still allow entries to activate #788

Closed
opened 2026-10-20 17:33:22 +07:00 by bsakaguchi · 0 comments
Owner

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/refactor commit f120eb33.

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

  1. Create an enabled lorebook and add a folder with enabled: false.
  2. Put an enabled constant entry in that folder.
  3. Attach the lorebook to a roleplay chat and run prompt preview / active world-info scan.
  4. Inspect the assembled prompt or active lorebook entries.

Expected

Entries inside a disabled folder should not activate, matching the LorebookFolder contract 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_APPEAR appeared in prompt preview and scanActiveLorebookEntries(...) returned the entry.

Likely owner

src/engine/generation/prompt-assembly.ts loads selected lorebooks and their entries, then filters entries by entry.enabled && entry.content.trim(). It does not load lorebook-folders or gate entries by disabled folder IDs.

Related UI/docs that already promise the behavior:

  • src/engine/contracts/types/lorebook.ts
  • src/features/catalog/lorebooks/components/LorebookFolderRow.tsx
  • src/features/catalog/lorebooks/hooks/use-lorebooks.ts

Acceptance criteria

  • Prompt assembly and active lorebook preview skip entries whose folderId belongs to a disabled folder.
  • Folder toggles invalidate/refetch the active preview after the fix.
  • Add a focused regression test for disabled-folder activation gating.
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/refactor` commit `f120eb33`. 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 1. Create an enabled lorebook and add a folder with `enabled: false`. 2. Put an enabled constant entry in that folder. 3. Attach the lorebook to a roleplay chat and run prompt preview / active world-info scan. 4. Inspect the assembled prompt or active lorebook entries. ## Expected Entries inside a disabled folder should not activate, matching the `LorebookFolder` contract 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_APPEAR` appeared in prompt preview and `scanActiveLorebookEntries(...)` returned the entry. ## Likely owner `src/engine/generation/prompt-assembly.ts` loads selected lorebooks and their entries, then filters entries by `entry.enabled && entry.content.trim()`. It does not load `lorebook-folders` or gate entries by disabled folder IDs. Related UI/docs that already promise the behavior: - `src/engine/contracts/types/lorebook.ts` - `src/features/catalog/lorebooks/components/LorebookFolderRow.tsx` - `src/features/catalog/lorebooks/hooks/use-lorebooks.ts` ## Acceptance criteria - Prompt assembly and active lorebook preview skip entries whose `folderId` belongs to a disabled folder. - Folder toggles invalidate/refetch the active preview after the fix. - Add a focused regression test for disabled-folder activation gating.
bsakaguchi 2026-10-20 17:33:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#788
No description provided.