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:
rhan-oai authored and copyberry committed 2026-09-09 17:56:33 +00:00
1 parent 6eecd04fc1
commit eb7bd64ef9
58 files changed
+670 -1192

No files matched your search

@@ -21,7 +21,7 @@ async fn model_default_saves_report_server_outcomes_and_target_server_profile()
loader_overrides.user_config_profile = Some("work".parse()?);
let overrides = if outcome == "overridden" {
vec![
("model".into(), toml::Value::String("gpt-5.2".into())),
("model".into(), toml::Value::String("gpt-5.6-terra".into())),
(
"model_reasoning_effort".into(),
toml::Value::String("low".into()),
@@ -69,7 +69,7 @@ async fn model_default_saves_report_server_outcomes_and_target_server_profile()
let mut tui = crate::tui::test_support::make_test_tui()?;
for event in [
AppEvent::PersistModelSelection {
model: "gpt-5.4".into(),
model: "gpt-5.5".into(),
effort: Some(ReasoningEffortConfig::High),
},
AppEvent::PersistPlanModeReasoningEffort(Some(ReasoningEffortConfig::High)),
@@ -77,7 +77,7 @@ async fn model_default_saves_report_server_outcomes_and_target_server_profile()
service_tier: Some(ServiceTier::Fast.request_value().into()),
},
AppEvent::ApplyAdvancedReasoning {
model: "gpt-5.4".into(),
model: "gpt-5.5".into(),
effort: ReasoningEffortConfig::Ultra,
},
] {
@@ -112,7 +112,7 @@ async fn model_default_saves_report_server_outcomes_and_target_server_profile()
assert_eq!(
toml::from_str::<toml::Value>(&persisted)?,
toml::Value::Table(toml::toml! {
model = "gpt-5.4"
model = "gpt-5.5"
model_reasoning_effort = "medium"
plan_mode_reasoning_effort = "high"
service_tier = "fast"