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
This commit is contained in:
oli-oai
2026-10-13 23:08:06 +00:00
committed by copyberry
parent a373281e9e
commit 8af93416dd
@@ -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");