mirror of
https://github.com/openai/codex.git
synced 2026-06-01 19:02:59 +00:00
fix: max depth agent still has v2 tools (#15880)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user