Skip to content

Remove the sub-agent concurrency cap - #349

Merged
TheGreatAxios merged 1 commit into
release/tui-bugfixesfrom
cl-5575-remove-subagent-cap
Aug 7, 2026
Merged

Remove the sub-agent concurrency cap#349
TheGreatAxios merged 1 commit into
release/tui-bugfixesfrom
cl-5575-remove-subagent-cap

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Removes the sub-agent concurrency pool, its reentrant nested-worker bypass, and the maxConcurrentSubAgents setting
  • Sub-agents now run unbounded regardless of session mode
  • Legacy settings.json files containing maxConcurrentSubAgents still load; the key is silently ignored

Verification

  • typecheck, build, and full test suite pass (net diff: 17 files, +25/-343 lines)
  • Two pre-existing unrelated failures observed (a worktree-path string collision in a shell rendering test, and the known-flaky transcript-layout test); both reproduce independent of this change
  • A settings file with maxConcurrentSubAgents set loads without error, with the key dropped
  • Removing the 0-disables-sub-agents kill switch was accepted per the ticket; no replacement flag was added
  • task-tool.ts's sessions.start (marks "running") now runs immediately before run(params), with no pool wait in between

Closes CL-5575
Closes CL-5573

Sub-agents now run unbounded: the acquire/release pool, its
reentrant special case for nested orchestrator workers, and the
maxConcurrentSubAgents setting (including its 0-disables-agents
kill switch) are gone. A session reported "running" is now
genuinely running the moment it is dispatched, instead of
potentially waiting on a pool slot.

Legacy settings.json files carrying maxConcurrentSubAgents still
load; the key is silently ignored rather than rejected.
@linear-code

linear-code Bot commented Aug 7, 2026

Copy link
Copy Markdown

CL-5575

CL-5573

@TheGreatAxios
TheGreatAxios merged commit e90e73f into release/tui-bugfixes Aug 7, 2026
2 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-5575-remove-subagent-cap branch August 7, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant