mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #828] [Issue]: Knowledge retrieval prompt section is omitted from RP prompt presets #401
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#401
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 (May 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/828
Originally assigned to: @Promansis on GitHub.
Summary
In RP chat, the Knowledge Retrieval agent output is not inserted when its “Add as Prompt Section” section is included in a prompt preset. Custom agent prompt sections insert correctly, and Knowledge Retrieval works when enabled directly in chat settings.
Expected behavior
When “Add as Prompt Section” is enabled for the Knowledge Retrieval agent and that section is included in a prompt preset, the agent output should be inserted at the configured location in the prompt.
If the same agent is activated through both prompt preset sections and chat settings, the output should only be
inserted once.
Actual behavior
The Knowledge Retrieval section is present in the prompt preset, but its generated output is missing from the prompt sent to the model.
When Knowledge Retrieval is activated in chat settings, its output is appended to the end of the prompt, confirming the agent itself works. Custom agent sections in the same prompt preset insert correctly.
Steps to reproduce
Environment
Logs, screenshots, or video
Reported screenshots:
Additional context
Pre-generation custom agents appear to work as intended. Other built-in agents may also be affected but were not tested.
Suggested guardrail: add a sanity check so an agent output is inserted only once if it is enabled through both prompt preset sections and chat settings.
Template check