From 8af93416ddf2c56575a7e9c890d5f446ec909943 Mon Sep 17 00:00:00 2001 From: oli-oai Date: Tue, 13 Oct 2026 23:00:45 +0000 Subject: [PATCH] Use the bundled model catalog in the MCP startup invalidation test (#53795) Set `config.model_catalog` to the bundled catalog in `mcp_invalidation_refreshes_threads_that_are_still_starting` so model resolution completes locally before the test waits for the startup lifecycle hook. GitOrigin-RevId: fd12df5140670dad4c9e2d22fabe73b0437af2b4 --- codex-rs/core/src/thread_manager_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codex-rs/core/src/thread_manager_tests.rs b/codex-rs/core/src/thread_manager_tests.rs index 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");