mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4305] [Issue]: Custom agents receive excessive and unrelated context #2330
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#2330
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 @SpicyMarinara on GitHub (Jul 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4305
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Custom agents receive context they may not need, including character/persona data, summaries, custom fields, available backgrounds, and tracker data for each turn. More granular controls are needed to select which context types are included.
Expected behavior
A custom agent running alone should receive only the configured and necessary context. Users should be able to toggle context types such as chat history, character information, persona information, activated lorebook entries, active summaries, author's notes, tracker data, and recalled memories.
Actual behavior
The custom agent receives excessive context, including loaded characters, chat summaries, custom fields, available backgrounds, <current_game_state> at the start, and <commited_tracker_state> for every turn. The same result occurs when running the agent in-turn with an isolated model/API and when using the custom agent rerun button.
Steps to reproduce
Environment
571a766)Logs, screenshots, or video
Screenshots showing the injected context: https://cdn.discordapp.com/attachments/1532370435528720564/1532370435755348109/Screenshot_20260730_144857_Samsung_Browser.jpg?ex=6a6c9aad&is=6a6b492d&hm=a747efb9a834c130e77294b6177b6a5902cbad00cb46d601b2e70afd46bc18bb&; https://cdn.discordapp.com/attachments/1532370435528720564/1532370436225237234/Screenshot_20260730_145007_Samsung_Browser.jpg?ex=6a6c9aae&is=6a6b492e&hm=be3cf1881f8d0e9a70074b70e5498f20550a752ad533cd487852df6efe645372&; https://cdn.discordapp.com/attachments/1532370435528720564/1532373546716758126/Screenshot_20260730_150413_Samsung_Browser.jpg?ex=6a6c9d93&is=6a6b4c13&hm=ccbef8962b62761b01676337e7f04bef578aa37c49d41248a483d6510a8ecb7f&
Additional context
The affected agent creates memory lorebook entries and was adapted from the lorebook agents. It ran alone, with no other agents requiring tracker data. When agents run together, the combined call should still include all context required by participating agents.
Discord thread: [Fr/Bug] custom agents get too much context -> more control? + ugly context (no regex?)
Discord thread link: https://discord.com/channels/1417099416812392641/1532370435528720564
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (8 messages)
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 30, 2026):
Ownership note: @SpicyMarinara is addressing this in draft PR #4307 on
agent/4303-4306-issue-sweep.