mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
preserving older test config
This commit is contained in:
@@ -46,7 +46,9 @@ async fn spawn_codex() -> Result<Codex, CodexErr> {
|
||||
);
|
||||
|
||||
let codex_home = TempDir::new().unwrap();
|
||||
let config = load_default_config_for_test(&codex_home);
|
||||
let mut config = load_default_config_for_test(&codex_home);
|
||||
config.model_provider.request_max_retries = Some(2);
|
||||
config.model_provider.stream_max_retries = Some(2);
|
||||
let (agent, _init_id) = Codex::spawn(config, std::sync::Arc::new(Notify::new())).await?;
|
||||
|
||||
Ok(agent)
|
||||
|
||||
Reference in New Issue
Block a user