[GH-ISSUE #828] [Issue]: Knowledge retrieval prompt section is omitted from RP prompt presets #401

Closed
opened 2026-10-20 17:28:26 +07:00 by bsakaguchi · 0 comments
Owner

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

  1. Open RP chat.
  2. Enable “Add as Prompt Section” in the Knowledge Retrieval agent tab.
  3. Add the Knowledge Retrieval agent section to a prompt preset.
  4. Use that prompt preset in RP chat.
  5. Inspect the prompt actually sent to the model.

Environment

  • Marinara Engine version: 1.5.9
  • Install type: Windows installer, clean install of 1.5.2 auto-updated to 1.5.9
  • OS + version: Windows 11
  • Browser or app shell: Desktop app shell
  • Chat mode: RP chat

Logs, screenshots, or video

Reported screenshots:

  1. Agent sections configured in the prompt preset.
  2. Prompt actually sent to the model, where Knowledge Retrieval is missing and a custom agent section is inserted correctly.
  3. Agents activated in chat settings, where both agents append output at the end of the prompt.

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

  • I DID NOT read this template and provide the requested details.
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 1. Open RP chat. 2. Enable “Add as Prompt Section” in the Knowledge Retrieval agent tab. 3. Add the Knowledge Retrieval agent section to a prompt preset. 4. Use that prompt preset in RP chat. 5. Inspect the prompt actually sent to the model. ## Environment - Marinara Engine version: 1.5.9 - Install type: Windows installer, clean install of 1.5.2 auto-updated to 1.5.9 - OS + version: Windows 11 - Browser or app shell: Desktop app shell - Chat mode: RP chat ## Logs, screenshots, or video Reported screenshots: 1. Agent sections configured in the prompt preset. 2. Prompt actually sent to the model, where Knowledge Retrieval is missing and a custom agent section is inserted correctly. 3. Agents activated in chat settings, where both agents append output at the end of the prompt. ## 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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:26 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#401
No description provided.