mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
codex: fix optional multi-agent CI failures
This commit is contained in:
@@ -378,6 +378,7 @@ impl AgentControl {
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn spawn_forked_thread(
|
||||
&self,
|
||||
state: &Arc<ThreadManagerState>,
|
||||
|
||||
@@ -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>,
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user