mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3190] [Issue]: Knowledge Router's output doesn't appear anywhere #1713
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#1713
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 @WaterBloom on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3190
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The issue I reported in #2874 is still happening (I don't have permission to reopen it, though).
Now I can't get it to work even in a fresh chat, or with a tiny (5 entries) lorebook.
Steps to reproduce
Environment
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 4, 2026):
You mean, it doesn't recall any lorebook entries? Maybe it didn't find any entries worth recalling? I'll ensure it's included in the debug agent outputs in the agents button so you can verify what it returned.
@SpicyMarinara commented on GitHub (Jul 4, 2026):
Addressed in draft PR #3199.
@WaterBloom commented on GitHub (Jul 4, 2026):
@SpicyMarinara Hello! Thank you for checking in.
I mean the entire section (of Knowledge Router) doesn't show up, no matter what.
I listed a few things I tried in the old issue, but here's what I've tested recently, hopefully it can clarify:
This where additional lore will be... {{agent::knowledge-router}}). When Knowledge Router is disabled in the chat, the section shows up with my text. When the agent is enabled, the entire section vanishes, text included.Appreciate the extra diagnostic option, thank you!
@SpicyMarinara commented on GitHub (Jul 4, 2026):
Pookie, I think you're misunderstanding how KR works. It decided which lorebook entries to include, so you will only potentially see lorebook entries activated in your roleplay.
@WaterBloom commented on GitHub (Jul 4, 2026):
Pardon? I understand that part, of course. :/ It does not activate any. No matter how relevant to the scene.
@SpicyMarinara commented on GitHub (Jul 4, 2026):
Check on staging what output it returns in the agent menu in the top left corner!
@WaterBloom commented on GitHub (Jul 4, 2026):
@SpicyMarinara I'm unsure if I can access the staging version yet (restarted server anyways), but this is what happens in my fresh test chat:
Left menu: agents thinking... running... Then No agent activity yet.
My provider:
So again, it is flagging the entries as relevant, because otherwise it wouldn't output 1k tokens, right?
I sent another reply, intentionally mentioning more characters that exist in the Lorebook. The next reply had this:
(Knowledge Router) API call: 8,698 input → 2,426 token output
You can see it's bigger output, so I think it correctly found their own entries.
It's just still not showing up in the assembled prompt.
@SpicyMarinara commented on GitHub (Jul 4, 2026):
Okay, thank you. Now let me investigate why they're not showing. I assume they're not showing in Active Context either? Are they sent to the model in the logs in the console?
@SpicyMarinara commented on GitHub (Jul 4, 2026):
Opened draft PR #3205 with a narrower fix for the disappearing Knowledge Router section and parser aliases. The fix keeps surrounding preset text when the router resolves empty, prunes macro-only sections cleanly, and accepts common selected-ID JSON shapes so routed entries become actual prompt injections.
@SpicyMarinara commented on GitHub (Jul 4, 2026):
Check on staging again.