mirror of
https://github.com/openai/codex.git
synced 2026-11-14 14:49:31 +00:00
Remove retired model entries while preserving migration prompts (#44250)
## Why Saved model selections can outlive their bundled catalog entries and still need migration guidance. ## What changed - Remove `gpt-5.2` and `gpt-5.4-mini` from the bundled model catalog. - Preserve migration from saved `gpt-5.4-mini` selections to `gpt-5.6-luna` when the old model is absent, while respecting catalog-provided migration metadata. - Update tests and snapshots to use current models or explicit test fixtures, and remove the obsolete prompt fixture. ## Testing Extend migration tests to cover catalog metadata precedence, saved selections, replacement model and reasoning-effort persistence, acknowledged prompts, and missing or hidden migration targets. GitOrigin-RevId: 82beea504cc4a15699677c28a61ec0939af3069c
This commit is contained in:
1 parent
6eecd04fc1
commit
eb7bd64ef9
58 files changed
+670
-1192
No files matched your search
@@ -76,8 +76,8 @@ async fn disabled_update_plan_preserves_custom_catalog_instructions() -> Result<
|
||||
let model = catalog
|
||||
.models
|
||||
.iter_mut()
|
||||
.find(|model| model.slug == "gpt-5.2")
|
||||
.expect("bundled gpt-5.2 model");
|
||||
.find(|model| model.slug == "gpt-5.5")
|
||||
.expect("bundled gpt-5.5 model");
|
||||
let messages = model
|
||||
.model_messages
|
||||
.as_mut()
|
||||
@@ -85,7 +85,7 @@ async fn disabled_update_plan_preserves_custom_catalog_instructions() -> Result<
|
||||
messages.instructions_template = Some(INSTRUCTIONS.to_string());
|
||||
messages.instructions_variables = None;
|
||||
let test = test_codex()
|
||||
.with_model("gpt-5.2")
|
||||
.with_model("gpt-5.5")
|
||||
.with_config(move |config| {
|
||||
config.update_plan_enabled = false;
|
||||
config.model_catalog = Some(catalog);
|
||||
@@ -544,7 +544,7 @@ async fn namespaced_model_slug_uses_catalog_metadata_without_fallback_warning()
|
||||
skip_if_sandbox!(Ok(()));
|
||||
|
||||
let server = MockServer::start().await;
|
||||
let requested_model = "custom/gpt-5.2-codex";
|
||||
let requested_model = "custom/gpt-5.5-codex";
|
||||
let response_mock = mount_sse_once(
|
||||
&server,
|
||||
sse(vec![ev_response_created("resp-1"), ev_completed("resp-1")]),
|
||||
|
||||
Reference in new issue
Block a user