mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2194] [Issue]: Lorebook Keeper backfill misses built-in fallback agent #1093
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#1093
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 @Promansis on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2194
Originally assigned to: @Promansis on GitHub.
Summary
Lorebook Keeper backfill and automatic cadence can silently do nothing when the chat enables the built-in Keeper but no saved agent config row exists.
Expected behavior
If a chat explicitly enables the built-in
lorebook-keeper, backfill and automatic keeper cadence should resolve the same built-in fallback config used by normal generation, then process eligible assistant messages.Actual behavior
The refactor normal agent resolver can synthesize built-in fallback rows, but the backfill path calls a separate
lorebookKeeperAgent()helper that only scans persistedagentsrows. If there is no saved Lorebook Keeper config row, backfill returns an empty result even though the chat metadata explicitly selected the built-in Keeper.Steps to reproduce
metadata.activeAgentIdscontaininglorebook-keeper.agentsrow for Lorebook Keeper.Impact area
Environment
mainLogs, screenshots, or video
Static trace:
src/engine/generation/agent-runner.ts:633-648,src/engine/generation/agent-runner.ts:919-926src/engine/generation/start-generation.ts:2199-2211src/engine/generation/start-generation.ts:2416-2428src/engine/generation/start-generation.ts:2904-2916,src/engine/generation/start-generation.ts:3035-3048main:packages/server/src/routes/generate/retry-agents-route.ts:500-506,main:packages/server/src/routes/generate/retry-agents-route.ts:633-660Regression notes
This appears to regress the legacy built-in fallback behavior for Keeper-specific retry/backfill paths while normal generation fallback support still exists in refactor.
Additional context
This came from parityscan batch 6, row
07-LB-RUNTIME-keeper-agent.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: