mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1548] [Issue]: Lorebook timing controls are saved but not wired into runtime activation #793
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#793
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/1548
Found during the 2026-05-29 native Tauri Lorebooks QA/code-path audit on
origin/refactorcommitf120eb33.What happened
Lorebook entry timing controls are exposed in the editor and stored on entries, but the runtime prompt activation path does not persist or reuse timing state.
ephemeralappears to be saved/normalized but not consumed by activation at all.Expected
stickykeeps an entry active for N messages after it triggers.cooldownprevents immediate reactivation until N messages pass.delaywaits N messages before first activation and then allows activation once the delay state counts down.ephemeralauto-disables or decrements per chat after N activations, matching the type comment for per-chat overrides.Actual
The active prompt path calls
scanForActivatedEntries(...)without passingtimingStates, and no generation/prompt path found by source search callsupdateTimingStatesForScan(...)or writeschat.metadata.entryTimingStates/entryStateOverridesafter activation.Consequences from the current code path:
stickyhas no prior state to keep an entry active.cooldownhas no persisted state, so activations are not throttled across turns.delayentries can be blocked forever because the delay state is never initialized/decremented by the runtime path.ephemeralis normalized from storage but not checked or decremented byscanForActivatedEntries(...).Evidence
Relevant code paths inspected:
src/engine/generation/prompt-assembly.tsnormalizessticky,cooldown,delay, andephemeral, then callsscanForActivatedEntries(...)without timing-state options.src/engine/generation-core/lorebooks/keyword-scanner.tsdefinesupdateTimingStatesForScan(...), but repo search found no runtime caller.src/engine/contracts/types/chat.tsdefinesentryStateOverridesandentryTimingStates, but repo search found no prompt-generation writeback path.src/features/catalog/lorebooks/components/LorebookEntryRow.tsxexposes the Timing controls and autosaves those fields.Acceptance criteria
sticky,cooldown, anddelaybehave across turns in a focused prompt-generation test.ephemeraleither receives a real per-chat decrement/disable implementation or is removed/hidden from the active behavior contract.@Promansis commented on GitHub (May 29, 2026):
Closing issue with PR #1565