mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1898] Max Parallel Agent Jobs setting is ignored by agent runtime #923
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#923
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 @Xelvanis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1898
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The connection setting
maxParallelJobsis exposed in the connection UI and schema, but the current agents runtime does not carry or apply it when resolving or batching agents.Evidence
Refactor behavior:
src/features/shell/connections/components/ConnectionEditor.tsxexposes "Max Parallel Agent Jobs".src/engine/contracts/types/connection.tsandsrc/engine/contracts/schemas/connection.schema.tsincludemaxParallelJobs.src/engine/generation/agent-runner.tsresolves agents without passing a per-agent max parallel job value into the runtime pipeline.src/engine/agents-runtime/pipeline/agent-pipeline.tshas nomaxParallelJobsfield onResolvedAgentand no group splitting based on it.Legacy behavior:
maxParallelJobsinto agent execution config.Impact
The user-visible setting appears to change agent LLM concurrency, but agent batches are not actually constrained by it. Users can get higher parallelism than configured, which can increase provider rate-limit risk and cost spikes.
Expected
The configured max parallel agent jobs value should flow from connection settings into resolved agent runtime config and constrain agent batch execution.
Candidate Fix
Thread
maxParallelJobsthrough agent resolution and restore pipeline group splitting/normalization for the setting.@SpicyMarinara commented on GitHub (Jun 2, 2026):
Fixed on refactor in
a4ba3c90: maxParallelJobs now flows from connection settings into resolved agents and constrains per-connection agent group execution. Verification passed: typecheck, architecture, docs, build, cargo check, diff check.