mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1546] [Issue]: Lorebook scan depth and recursion settings are ignored during prompt activation #789
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#789
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/1546
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
Lorebook-level
scanDepthandrecursiveScanningsettings are saved but not honored by prompt activation.Repro A: lorebook scan depth
scanDepth: 1.LQA_OLD_KEY.LQA_OLD_KEYonly in an older message, not the latest message.Expected: the entry should not activate because the lorebook default scan depth should limit scanning to the latest message.
Actual: the entry activated and
LQA_SCAN_DEPTH_CONTENT_SHOULD_NOT_APPEARappeared in the assembled prompt.Repro B: recursive scanning
recursiveScanning: true.Expected: recursive scanning should activate the child entry when recursion is enabled.
Actual: only the parent activated;
LQA_RECURSIVE_CHILD_CONTENT_SHOULD_APPEAR_IF_RECURSION_WIREDwas absent.Likely owner
loadActivatedLore(...)insrc/engine/generation/prompt-assembly.tsnormalizes flat entries and callsscanForActivatedEntries(...)directly. It does not apply lorebook-levelscanDepthdefaults to entries, and it does not callrecursiveScan(...)when a selected book hasrecursiveScanning: true.Acceptance criteria
scanDepthfor entries without an entry-level override.recursiveScanning: true, or the UI/storage contract is changed so the setting is not presented as active behavior.