mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +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
@@ -3466,7 +3466,7 @@ mod tests {
|
||||
async fn persisted_resume_does_not_forward_implicit_service_tier() -> Result<()> {
|
||||
let codex_home = tempfile::tempdir().expect("tempdir");
|
||||
let mut config = build_config(&codex_home).await;
|
||||
config.model = Some("gpt-5.4".to_string());
|
||||
config.model = Some("gpt-5.5".to_string());
|
||||
config.service_tier = None;
|
||||
config
|
||||
.features
|
||||
@@ -3486,8 +3486,8 @@ mod tests {
|
||||
let mut app_server = crate::start_embedded_app_server_for_picker(&config).await?;
|
||||
let mut preset = crate::test_support::TEST_MODEL_PRESETS
|
||||
.iter()
|
||||
.find(|preset| preset.model == "gpt-5.4")
|
||||
.expect("gpt-5.4 test preset")
|
||||
.find(|preset| preset.model == "gpt-5.5")
|
||||
.expect("gpt-5.5 test preset")
|
||||
.clone();
|
||||
preset.service_tiers = vec![ModelServiceTier {
|
||||
id: ServiceTier::Fast.request_value().to_string(),
|
||||
|
||||
Reference in new issue
Block a user