codex: fix optional multi-agent CI failures

This commit is contained in:
Ahmed Ibrahim
2026-05-30 20:45:29 -07:00
parent 514afd0441
commit db0becc830
5 changed files with 5 additions and 5 deletions

View File

@@ -378,6 +378,7 @@ impl AgentControl {
})
}
#[allow(clippy::too_many_arguments)]
async fn spawn_forked_thread(
&self,
state: &Arc<ThreadManagerState>,

View File

@@ -827,7 +827,7 @@ pub struct Config {
/// Maximum number of agent threads that can be open concurrently.
pub agent_max_threads: Option<usize>,
/// User-configured legacy thread limit before applying the locked multi-agent runtime.
pub(crate) configured_agent_max_threads: Option<usize>,
pub configured_agent_max_threads: Option<usize>,
/// Maximum runtime in seconds for agent job workers before they are failed.
pub agent_job_max_runtime_seconds: Option<u64>,

View File

@@ -1232,9 +1232,7 @@ impl ThreadManagerState {
let multi_agent_version = inherited_multi_agent_version
.unwrap_or_else(|| config.multi_agent_version_from_features());
let Some(multi_agent_version) = multi_agent_version else {
return None;
};
let multi_agent_version = multi_agent_version?;
let source_thread_id = match initial_history {
InitialHistory::Resumed(resumed) => Some(resumed.conversation_id),
InitialHistory::Forked(_) => forked_from_thread_id,

View File

@@ -900,7 +900,7 @@ async fn legacy_resume_continues_when_multi_agent_version_seed_fails() {
Arc::new(codex_exec_server::EnvironmentManager::default_for_tests()),
empty_extension_registry(),
/*analytics_events_client*/ None,
thread_store,
Arc::clone(&thread_store),
/*state_db*/ None,
TEST_INSTALLATION_ID.to_string(),
/*attestation_provider*/ None,

View File

@@ -224,6 +224,7 @@ fn new_config(model: Option<String>, arg0_paths: Arg0DispatchPaths) -> anyhow::R
project_doc_fallback_filenames: Vec::new(),
tool_output_token_limit: None,
agent_max_threads: Some(6),
configured_agent_max_threads: Some(6),
agent_job_max_runtime_seconds: None,
agent_interrupt_message_enabled: false,
agent_max_depth: 1,