mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6991] [MERGED] feat(agents): let an agent opt out of shared agent requests #7419
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#7419
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6991
Author: @SpicyMarinara
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/agent-batching-toggle-6977📝 Commits (5)
1e06892feat(agents): let an agent opt out of shared agent requestscfee43afix(agents): keep every rewrite edit and the job limit on agent retriesea09ab2Merge remote-tracking branch 'origin/staging' into feat/agent-batching-toggle-697704c62a0fix(agents): lock the sharing switch for Music DJ in YouTube and Custom modes603d0f9Merge remote-tracking branch 'origin/staging' into feat/agent-batching-toggle-6977📊 Changes
13 files changed (+393 additions, -45 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
packages/client/src/components/agents/AgentEditor.tsx(+38 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+1 -0)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/server/src/routes/generate.routes.ts(+3 -0)📝
packages/server/src/routes/generate/retry-agents-route.ts(+77 -39)📝
packages/server/src/services/agents/agent-executor.ts(+6 -2)📝
packages/server/src/services/generation/prose-guardian-settings.ts(+7 -2)📝
packages/shared/src/utils/agent-cost.ts(+5 -2)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+47 -0)➕
scripts/regressions/agent-retry-batching.regression.ts(+143 -0)📝
scripts/regressions/agent-runtime.regression.ts(+28 -0)📝
scripts/regressions/roleplay-streaming.regression.ts(+31 -0)📄 Description
Linked issue
Closes #6977
Why this change
Agents that share a connection are batched into one request. Local models often mix up the instructions of batched agents. For example, a custom tracker starts filling in world-tracker fields, or the reverse. There was no way to keep one agent out of the batch. As promised on the issue, the Agent editor now has a toggle for that. The global and per-connection batching settings the issue also mentions are out of scope.
What changed
settings.batchWithOtherAgents, shown in the Agent editor as Share requests with other agents under Connection Override, for built-in and custom agents. It is on by default, so nothing changes until a user turns it off. Off meansshouldRunAgentIndividually(agent-executor.ts) sends the agent in its own request. Other agents on that connection still share one, and the agent's own request still waits behind the connection's Max Parallel Agent Jobs limit. Agent settings are a free-form record that import and export already keep, so there is no schema or storage change. The editor saves and exports the key.mergePairedBuiltInRewriteAgentsand its retry twin). The newsharesBuiltInRewriteRequestkeeps an opted-out rewrite agent out of that merge after a reply and on retry. Without it, the switch would do nothing for those three.agent-runtime(an opted-out agent gets its own request while the others still share one) androleplay-streaming(rewrite merge) are extended.agent-retry-batchingis new, for the retry rewrite chain and the per-connection job limit.advanced-memory-post-generationis extended, for the scene check.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent:
pnpm checkandpnpm localization:checkpass.Still to verify by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG updated. No user doc became wrong;
docs/agents/agents-overview.mdcould mention the switch in a later docs pass.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.