From 1f304dd1f2c87f907aa56cbf076a846f4d013b9a Mon Sep 17 00:00:00 2001 From: Andrey Mishchenko Date: Sun, 26 Apr 2026 17:56:05 -0700 Subject: [PATCH] Allow agents.max_threads to work with multi_agent_v2 (#19733) --- codex-rs/core/src/config/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/codex-rs/core/src/config/mod.rs b/codex-rs/core/src/config/mod.rs index 741472959..ad88fbe0e 100644 --- a/codex-rs/core/src/config/mod.rs +++ b/codex-rs/core/src/config/mod.rs @@ -2117,13 +2117,6 @@ impl Config { let history = cfg.history.unwrap_or_default(); - let agent_max_threads_from_config = cfg.agents.as_ref().and_then(|agents| agents.max_threads); - if features.enabled(Feature::MultiAgentV2) && agent_max_threads_from_config.is_some() { - return Err(std::io::Error::new( - std::io::ErrorKind::InvalidInput, - "agents.max_threads cannot be set when multi_agent_v2 is enabled", - )); - } let agent_max_threads = cfg .agents .as_ref()