mirror of
https://github.com/openai/codex.git
synced 2026-11-05 16:29:31 +00:00
Allow agents.max_threads to work with multi_agent_v2 (#19733)
This commit is contained in:
1 parent
2cb8746457
commit
1f304dd1f2
1 file changed
-7
@@ -2117,13 +2117,6 @@ impl Config {
|
|||||||
|
|
||||||
let history = cfg.history.unwrap_or_default();
|
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
|
let agent_max_threads = cfg
|
||||||
.agents
|
.agents
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
|||||||
Reference in new issue
Block a user