fix: max depth agent still has v2 tools (#15880)

This commit is contained in:
jif-oai
2026-03-26 16:36:12 +00:00
committed by GitHub
parent c9214192c5
commit 352f37db03

View File

@@ -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);
}