mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Keep agent concurrency guidance when native tools are disabled (#62864)
## Why Disabling native multi-agent tools also dropped the default guidance about how many agents can be active in a session. That limit still matters for agents running on a host that handles turn admission. ## What changed When `multi_agent_v2.disable_native_tools` is set, root agents and subagents receive only the configured `multi_agent_v2.max_concurrent_threads_per_session` in their default role guidance. Explicit role overrides retain precedence, and empty role text still suppresses the guidance. ## Testing Cover both roles with bundled and catalog-provided role text. Update the request snapshots for explicit and proactive delegation to show the concurrency hint with native tools hidden. GitOrigin-RevId: e940e7a7886b69888002307c021607b19bb87cd0
This commit is contained in:
@@ -55,7 +55,9 @@ pub(crate) fn resolve_usage_hints(
|
||||
return None;
|
||||
}
|
||||
if config.disable_native_tools {
|
||||
return None;
|
||||
return Some(MultiAgentRoleInstructions::concurrency_only(
|
||||
config.max_concurrent_threads_per_session,
|
||||
));
|
||||
}
|
||||
Some(MultiAgentRoleInstructions::Composed {
|
||||
base: base.to_owned(),
|
||||
|
||||
Reference in New Issue
Block a user