[GH-ISSUE #1898] Max Parallel Agent Jobs setting is ignored by agent runtime #923

Closed
opened 2026-10-21 05:23:35 +07:00 by bsakaguchi · 1 comment
Owner

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 maxParallelJobs is 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.tsx exposes "Max Parallel Agent Jobs".
  • src/engine/contracts/types/connection.ts and src/engine/contracts/schemas/connection.schema.ts include maxParallelJobs.
  • src/engine/generation/agent-runner.ts resolves agents without passing a per-agent max parallel job value into the runtime pipeline.
  • src/engine/agents-runtime/pipeline/agent-pipeline.ts has no maxParallelJobs field on ResolvedAgent and no group splitting based on it.

Legacy behavior:

  • Legacy generation resolved the connection's maxParallelJobs into agent execution config.
  • Legacy agent pipeline normalized the value and split batches to respect the configured concurrency limit.

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 maxParallelJobs through agent resolution and restore pipeline group splitting/normalization for the setting.

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 `maxParallelJobs` is 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.tsx` exposes "Max Parallel Agent Jobs". - `src/engine/contracts/types/connection.ts` and `src/engine/contracts/schemas/connection.schema.ts` include `maxParallelJobs`. - `src/engine/generation/agent-runner.ts` resolves agents without passing a per-agent max parallel job value into the runtime pipeline. - `src/engine/agents-runtime/pipeline/agent-pipeline.ts` has no `maxParallelJobs` field on `ResolvedAgent` and no group splitting based on it. Legacy behavior: - Legacy generation resolved the connection's `maxParallelJobs` into agent execution config. - Legacy agent pipeline normalized the value and split batches to respect the configured concurrency limit. ### 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 `maxParallelJobs` through agent resolution and restore pipeline group splitting/normalization for the setting.
Author
Owner

@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.

<!-- gh-comment-id:4601637250 --> @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.
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#923
No description provided.