Lightweight coding agent that runs in your terminal
Rust
Use the bundled model catalog in the MCP startup invalidation test (#53795)
oli-oai8af93416ddf2
diff --git a/codex-rs/core/src/thread_manager_tests.rs b/codex-rs/core/src/thread_manager_tests.rsindex 0c2d6dc6c2..ad7b5789ec 100644--- a/codex-rs/core/src/thread_manager_tests.rs+++ b/codex-rs/core/src/thread_manager_tests.rs@@ -1035,6 +1035,10 @@ async fn mcp_invalidation_refreshes_threads_that_are_still_starting() {let temp_dir = tempdir().expect("tempdir");let mut config = test_config().await;+ // Resolve the model locally before waiting for the MCP lifecycle hook.+ config.model_catalog = Some(+ codex_models_manager::bundled_models_response().expect("bundled model catalog should load"),+ );config.codex_home = temp_dir.path().join("codex-home").abs();config.cwd = config.codex_home.abs();std::fs::create_dir_all(&config.codex_home).expect("create codex home");