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
@@ -44,7 +44,7 @@ async fn cli_fork_omits_implicit_model_and_effort() -> Result<()> {
|
||||
let home = tempdir()?;
|
||||
std::fs::write(
|
||||
home.path().join("config.toml"),
|
||||
"model = \"gpt-5.2\"\nmodel_reasoning_effort = \"low\"\nfeatures.fast_mode = true\n",
|
||||
"model = \"gpt-5.5\"\nmodel_reasoning_effort = \"low\"\nfeatures.fast_mode = true\n",
|
||||
)?;
|
||||
let config = ConfigBuilder::default()
|
||||
.codex_home(home.path().to_path_buf())
|
||||
@@ -76,7 +76,7 @@ async fn cli_fork_omits_implicit_model_and_effort() -> Result<()> {
|
||||
let client_preset = bootstrap
|
||||
.available_models
|
||||
.iter_mut()
|
||||
.find(|preset| preset.model == "gpt-5.2")
|
||||
.find(|preset| preset.model == "gpt-5.5")
|
||||
.expect("client model in catalog");
|
||||
client_preset.upgrade = Some(codex_protocol::openai_models::ModelUpgrade {
|
||||
id: "server-model".into(),
|
||||
@@ -88,7 +88,7 @@ async fn cli_fork_omits_implicit_model_and_effort() -> Result<()> {
|
||||
});
|
||||
assert!(
|
||||
crate::app::startup_prompts::should_show_model_migration_prompt(
|
||||
"gpt-5.2",
|
||||
"gpt-5.5",
|
||||
"server-model",
|
||||
&Default::default(),
|
||||
&bootstrap.available_models,
|
||||
|
||||
Reference in new issue
Block a user