Lightweight coding agent that runs in your terminal
Rust
fix: max depth agent still has v2 tools (#15880)
jif-oai352f37db0331
diff --git a/codex-rs/core/src/tools/handlers/multi_agents_common.rs b/codex-rs/core/src/tools/handlers/multi_agents_common.rsindex 106f34253d..452e05a2f4 100644--- a/codex-rs/core/src/tools/handlers/multi_agents_common.rs+++ b/codex-rs/core/src/tools/handlers/multi_agents_common.rs@@ -281,7 +281,7 @@ pub(crate) fn apply_spawn_agent_runtime_overrides(}pub(crate) fn apply_spawn_agent_overrides(config: &mut Config, child_depth: i32) {- if child_depth >= config.agent_max_depth {+ if child_depth >= config.agent_max_depth && !config.features.enabled(Feature::MultiAgentV2) {let _ = config.features.disable(Feature::SpawnCsv);let _ = config.features.disable(Feature::Collab);}