mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +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:
@@ -16,7 +16,7 @@ async fn offline_model_info_without_tool_output_override() {
|
||||
TestModelsEndpoint::new(Vec::new()),
|
||||
);
|
||||
|
||||
let model_info = manager.get_model_info("gpt-5.2", &config).await;
|
||||
let model_info = manager.get_model_info("unknown-model", &config).await;
|
||||
|
||||
assert_eq!(
|
||||
model_info.truncation_policy,
|
||||
@@ -36,7 +36,7 @@ async fn offline_model_info_with_tool_output_override() {
|
||||
TestModelsEndpoint::new(Vec::new()),
|
||||
);
|
||||
|
||||
let model_info = manager.get_model_info("gpt-5.4", &config).await;
|
||||
let model_info = manager.get_model_info("gpt-5.5", &config).await;
|
||||
|
||||
assert_eq!(
|
||||
model_info.truncation_policy,
|
||||
|
||||
Reference in New Issue
Block a user