You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: CodexErrorDetails::AgentLimitReached { max_threads } drops max_threads from Display and model-facing collab spawn error #64537
CodexErrorDetails::AgentLimitReached { max_threads } explicitly carries the configured max_threads: usize value, but its thiserror#[error(...)] format string omits {max_threads} and renders only "agent thread limit reached". Because collab_spawn_error forwards format!("collab spawn failed: {err}") to the model, a model hitting the concurrency cap receives "collab spawn failed: agent thread limit reached" with no indication of what the limit is (or that closing/waiting on active agents frees slots).
Run a multi-agent workflow that attempts to spawn more concurrent subagents than agents.max_threads (e.g., spawning 5 parallel subagents under a lower thread cap).
Observe the tool error returned to the model:
collab spawn failed: agent thread limit reached
The max_threads value already present on AgentLimitReached { max_threads } is discarded.
(Reproduced during TraceTrial-Bench Core-95 multi-agent evaluation on C6-infra-research-subagent-001 with [email protected].)
Expected Behavior
Interpolate {max_threads} in CodexErrorDetails::AgentLimitReached (e.g., #[error("agent thread limit reached (max_threads={max_threads})")] or in collab_spawn_error) so both logs and the model know the active thread cap and can plan batching/closing accordingly.
Activity