diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs index 13481b5a7e..b26c11a550 100644 --- a/codex-rs/tui/src/app.rs +++ b/codex-rs/tui/src/app.rs @@ -530,8 +530,8 @@ impl App { self.chat_widget .open_reasoning_popup(model, preferred_effort); } - AppEvent::OpenLegacyModelPopup => { - self.chat_widget.open_legacy_model_popup(); + AppEvent::OpenAllModelsPopup => { + self.chat_widget.open_all_models_popup(); } AppEvent::ApplyModelAndEffort { model, effort } => { self.chat_widget.apply_model_and_effort(model, effort); diff --git a/codex-rs/tui/src/app_event.rs b/codex-rs/tui/src/app_event.rs index 1ff1bb5b27..8ae607854f 100644 --- a/codex-rs/tui/src/app_event.rs +++ b/codex-rs/tui/src/app_event.rs @@ -78,8 +78,8 @@ pub(crate) enum AppEvent { effort: Option, }, - /// Open the legacy model picker. - OpenLegacyModelPopup, + /// Open the full model list picker. + OpenAllModelsPopup, /// Open the confirmation prompt before enabling full access mode. OpenFullAccessConfirmation { diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 38811e24f8..dcd2f15b82 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -1968,14 +1968,14 @@ impl ChatWidget { pub(crate) fn open_model_popup(&mut self) { let auth_mode = self.auth_manager.auth().map(|auth| auth.mode); let presets = builtin_model_presets(auth_mode); - let (featured, legacy): (Vec<_>, Vec<_>) = + let (featured, all_models): (Vec<_>, Vec<_>) = presets.into_iter().partition(|preset| preset.is_default); if featured.is_empty() { self.show_model_list( - legacy, + all_models, "Select Model and Effort", Some( - "Access legacy models by running codex -m or in your config.toml" + "Access all models by running codex -m or in your config.toml" .to_string(), ), ); @@ -1994,7 +1994,7 @@ impl ChatWidget { selected_description: None, is_current: false, actions: vec![Box::new(|tx| { - tx.send(AppEvent::OpenLegacyModelPopup); + tx.send(AppEvent::OpenAllModelsPopup); })], dismiss_on_select: true, ..Default::default() @@ -2003,7 +2003,8 @@ impl ChatWidget { self.bottom_pane.show_selection_view(SelectionViewParams { title: Some("Select Model".to_string()), subtitle: Some( - "Quickly pick Codex Auto or open the legacy list for more options.".to_string(), + "Quickly pick Codex Auto or open the full list of models for more options." + .to_string(), ), footer_hint: Some("Press enter to apply selection, or esc to dismiss.".into()), items, @@ -2011,16 +2012,16 @@ impl ChatWidget { }); } - pub(crate) fn open_legacy_model_popup(&mut self) { + pub(crate) fn open_all_models_popup(&mut self) { let auth_mode = self.auth_manager.auth().map(|auth| auth.mode); let presets = builtin_model_presets(auth_mode); - let (_, legacy): (Vec<_>, Vec<_>) = + let (_, all_models): (Vec<_>, Vec<_>) = presets.into_iter().partition(|preset| preset.is_default); self.show_model_list( - legacy, - "Select Legacy Model", + all_models, + "Select Model", Some( - "Access legacy models by running codex -m or in your config.toml" + "Access the full list of models or use codex -m in your config.toml" .to_string(), ), ); diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_selection_popup.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_selection_popup.snap index 6cfce48b89..659d641350 100644 --- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_selection_popup.snap +++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_selection_popup.snap @@ -3,7 +3,7 @@ source: tui/src/chatwidget/tests.rs expression: popup --- Select Model and Effort - Access legacy models by running codex -m or in your config.toml + Access all models by running codex -m or in your config.toml › 1. gpt-5.1-codex Optimized for codex. 2. gpt-5.1-codex-mini Optimized for codex. Cheaper, faster, but less