[GH-ISSUE #6356] [Issue]: Enable context source configuration for built-in agents #3554

Closed
opened 2026-10-21 06:04:14 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6356

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Advanced users cannot configure additional context sources for built-in agents, such as disabling character-card fields for the World State agent. Exposing these settings would reduce unnecessary prompt tokens while preserving the ability to include required context for grouped agents.

Expected behavior

Users should be able to configure which context sources, such as chat history, character cards, personas, lorebooks, and trackers, are included for each built-in agent, with the settings saved persistently.

Actual behavior

Additional agent settings are gated for built-in agents in the client UI, preventing users from editing them. Manually adding a contextSources configuration to an agent config can be overwritten when saving the agent or possibly when adding or removing the agent from a chat.

Steps to reproduce

  1. Open the built-in World State agent configuration in the Agents UI.
  2. Observe that the additional context source settings are unavailable for the built-in agent.
  3. Manually add a contextSources configuration to the World State config file, such as disabling character context.
  4. Save the agent or add or remove the agent from a chat.
  5. Observe that the manually edited configuration may be overwritten.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video provided. The reported client-side gating is in packages/client/src/components/agents/AgentEditor.tsx. Example manually added configuration: contextSources with chatHistory enabled and characters, persona, activatedLorebookEntries, chatSummary, authorNotes, trackerData, recalledMemories, and previousOutput disabled.

Additional context

The World State agent reportedly does not require character information when used alone, but character information is needed when it is grouped with Characters Trackers because agent calls are grouped. A toggle or equivalent configuration in the Agents tab was suggested for deciding which information is included with each agent call.

Discord thread: Enable full agent config UI for built in agents.
Discord thread link: https://discord.com/channels/1417099416812392641/1550589880860409906
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (7 messages)
[2026-09-18T19:30:36.164Z] Starcitsura: I am looking for finer control over the built in agents. for example, while inspecting the prompt for World State I found it was sending truncated fields from the character card. As the character card was not designed with this in mind, this is largely just sending wasted tokens in the prompt.
I was able to manually change this by editing the World State config file, copying over `\"contextSources\":{\"chatHistory\":true,\"characters\":false,\"persona\":false,\"activatedLorebookEntries\":false,\"chatSummary\":false,\"authorNotes\":false,\"trackerData\":false,\"recalledMemories\":false,\"previousOutput\":false}` into the settings value.

The ability to edit the additional agent settings appears to be client side only in packages/client/src/components/agents/AgentEditor.tsx
There are several gates that check if this is a built in or custom agent.

Please consider adding a toggle to make these settings available for built in agents for advanced users, or enable them for all agent types.
[Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550589880860409906]

[2026-09-18T19:30:36.924Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550589884048211990]

[2026-09-18T19:47:04.719Z] Starcitsura: There are some cases that cause the manually edited config to be overwritten, some obvious, like saving the agent in the UI, some less obvious, but this likely has to do with how the config is saved to disk, like adding/removing the agent from a chat. I have not fully explored this.
[Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550594027160739942]

[2026-09-19T11:42:43.950Z] Marinara: It's just some agents require more info than others.
[Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550834525326676069]

[2026-09-19T11:43:04.948Z] Marinara: World State doesn't require character info, but if you group it with Characters Trackers, then those are needed.
[Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550834613398540299]

[2026-09-19T11:43:14.695Z] Marinara: So they're sent with the request, since we group agent calls.
[Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550834654280679427]

[2026-09-19T11:49:05.049Z] Marinara: We could add toggles in agent editors in the Agents tab to decide which info to include with an agent call (lorebooks, character cards, personas).
[Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550836123771605083]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6356 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Advanced users cannot configure additional context sources for built-in agents, such as disabling character-card fields for the World State agent. Exposing these settings would reduce unnecessary prompt tokens while preserving the ability to include required context for grouped agents. ## Expected behavior Users should be able to configure which context sources, such as chat history, character cards, personas, lorebooks, and trackers, are included for each built-in agent, with the settings saved persistently. ## Actual behavior Additional agent settings are gated for built-in agents in the client UI, preventing users from editing them. Manually adding a contextSources configuration to an agent config can be overwritten when saving the agent or possibly when adding or removing the agent from a chat. ## Steps to reproduce 1. Open the built-in World State agent configuration in the Agents UI. 2. Observe that the additional context source settings are unavailable for the built-in agent. 3. Manually add a contextSources configuration to the World State config file, such as disabling character context. 4. Save the agent or add or remove the agent from a chat. 5. Observe that the manually edited configuration may be overwritten. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. The reported client-side gating is in packages/client/src/components/agents/AgentEditor.tsx. Example manually added configuration: contextSources with chatHistory enabled and characters, persona, activatedLorebookEntries, chatSummary, authorNotes, trackerData, recalledMemories, and previousOutput disabled. ## Additional context The World State agent reportedly does not require character information when used alone, but character information is needed when it is grouped with Characters Trackers because agent calls are grouped. A toggle or equivalent configuration in the Agents tab was suggested for deciding which information is included with each agent call. Discord thread: Enable full agent config UI for built in agents. Discord thread link: https://discord.com/channels/1417099416812392641/1550589880860409906 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (7 messages)</summary> ```text [2026-09-18T19:30:36.164Z] Starcitsura: I am looking for finer control over the built in agents. for example, while inspecting the prompt for World State I found it was sending truncated fields from the character card. As the character card was not designed with this in mind, this is largely just sending wasted tokens in the prompt. I was able to manually change this by editing the World State config file, copying over `\"contextSources\":{\"chatHistory\":true,\"characters\":false,\"persona\":false,\"activatedLorebookEntries\":false,\"chatSummary\":false,\"authorNotes\":false,\"trackerData\":false,\"recalledMemories\":false,\"previousOutput\":false}` into the settings value. The ability to edit the additional agent settings appears to be client side only in packages/client/src/components/agents/AgentEditor.tsx There are several gates that check if this is a built in or custom agent. Please consider adding a toggle to make these settings available for built in agents for advanced users, or enable them for all agent types. [Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550589880860409906] [2026-09-18T19:30:36.924Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550589884048211990] [2026-09-18T19:47:04.719Z] Starcitsura: There are some cases that cause the manually edited config to be overwritten, some obvious, like saving the agent in the UI, some less obvious, but this likely has to do with how the config is saved to disk, like adding/removing the agent from a chat. I have not fully explored this. [Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550594027160739942] [2026-09-19T11:42:43.950Z] Marinara: It's just some agents require more info than others. [Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550834525326676069] [2026-09-19T11:43:04.948Z] Marinara: World State doesn't require character info, but if you group it with Characters Trackers, then those are needed. [Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550834613398540299] [2026-09-19T11:43:14.695Z] Marinara: So they're sent with the request, since we group agent calls. [Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550834654280679427] [2026-09-19T11:49:05.049Z] Marinara: We could add toggles in agent editors in the Agents tab to decide which info to include with an agent call (lorebooks, character cards, personas). [Discord message: https://discord.com/channels/1417099416812392641/1550589880860409906/1550836123771605083] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:04:14 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 19, 2026):

Owner: @SpicyMarinara, assisted by Codex. Taking this report in the issue sweep tracked by draft PR #6359. I will trace the affected path, keep the fix small, and record the relevant regression proof before merging to staging.

<!-- gh-comment-id:5741687238 --> @SpicyMarinara commented on GitHub (Sep 19, 2026): Owner: @SpicyMarinara, assisted by Codex. Taking this report in the issue sweep tracked by draft PR #6359. I will trace the affected path, keep the fix small, and record the relevant regression proof before merging to staging.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 19, 2026):

Merged to staging in #6359. Built-in agents now expose the supported context-source controls and preserve selections through save, export, and reload. Previous output is loaded when selected; vector memory retains its capability requirement. Existing defaults and grouped-request source unions are preserved and tested.

<!-- gh-comment-id:5742478030 --> @SpicyMarinara commented on GitHub (Sep 19, 2026): Merged to staging in #6359. Built-in agents now expose the supported context-source controls and preserve selections through save, export, and reload. Previous output is loaded when selected; vector memory retains its capability requirement. Existing defaults and grouped-request source unions are preserved and tested.
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#3554
No description provided.