mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #854] [Issue]: Knowledge Retrieval agent roleplays in-character instead of summarizing #409
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#409
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 @cha1latte on GitHub (May 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/854
Originally assigned to: @Promansis on GitHub.
Summary
The Knowledge Retrieval agent can roleplay in-character instead of summarizing source material. A user report indicates this is caused by the non-user-editable prompt formatting for conversation data.
Source: Discord report from Danshi. https://discord.com/channels/1417099416812392641/1504387432898887751
Expected behavior
The Knowledge Retrieval agent should summarize or retrieve from the supplied source material, not produce an in-character RP response.
Actual behavior
With the default agent prompt preset, the Knowledge Retrieval agent often responds in-character. In the reporter's test setup, 9 out of 10 default-prompt runs produced in-character RP output instead of the requested knowledge retrieval summary.
Steps to reproduce
Marinara Engine version
1.5.9
Install type
Not specified.
OS + version
Not specified.
Browser or app shell
Not specified.
Screenshots or video
Not a visual/UI issue.
Logs
No logs included.
Additional context
Mode: RP chat.
Agent: Knowledge Retrieval.
Model used in reporter's test: gemma-4-E2B-it-Q8_0.
Reporter's diagnosis/fix proposal:
<|turn>user ...<turn|><|turn>model ...<turn|>tags from conversation data.{{user}}: [...]and{char}: [...].<conversation_messages>tag.Fulfill the requested task and return the output in the format specified:from the start of the<agent>section into a user message at the end of the prompt.Reporter's test result:
Default Agent Prompt Preset, 10 runs:
Custom Agent Prompt Preset, 10 runs:
Reporter additionally recommends removing the
<lore>section from the Knowledge Retrieval agent prompt preset, or explicitly instructing the agent not to summarize<lore>or<conversation_messages>. They also noted that lore already sent to the main model should be stripped from<source_material>sent to the agent to avoid duplication.The Discord report referenced an attached custom prompt preset text file, but no uploadable file was provided to Codex. Filing the details visible in the report.
Template check