From 5c583fe89bbd3ab4dc9a05768299f94e52fe8452 Mon Sep 17 00:00:00 2001 From: ae Date: Mon, 15 Sep 2025 08:49:37 -0700 Subject: [PATCH] feat: tweak onboarding strings (#3650) --- codex-rs/core/src/config.rs | 1 - codex-rs/tui/src/new_model_popup.rs | 18 ++++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/codex-rs/core/src/config.rs b/codex-rs/core/src/config.rs index abaa2f1c..f9693306 100644 --- a/codex-rs/core/src/config.rs +++ b/codex-rs/core/src/config.rs @@ -39,7 +39,6 @@ use toml_edit::Table as TomlTable; const OPENAI_DEFAULT_MODEL: &str = "gpt-5"; const OPENAI_DEFAULT_REVIEW_MODEL: &str = "gpt-5"; pub const GPT_5_CODEX_MEDIUM_MODEL: &str = "gpt-5-codex"; -pub const GPT_5_CODEX_DISPLAY_NAME: &str = "gpt-5-codex"; /// Maximum number of bytes of the documentation that will be embedded. Larger /// files are *silently truncated* to this size so we do not take up too much of diff --git a/codex-rs/tui/src/new_model_popup.rs b/codex-rs/tui/src/new_model_popup.rs index 5ed53e4d..12325074 100644 --- a/codex-rs/tui/src/new_model_popup.rs +++ b/codex-rs/tui/src/new_model_popup.rs @@ -3,7 +3,6 @@ use crate::frames::FRAME_TICK_DEFAULT; use crate::tui::FrameRequester; use crate::tui::Tui; use crate::tui::TuiEvent; -use codex_core::config::GPT_5_CODEX_DISPLAY_NAME; use color_eyre::eyre::Result; use crossterm::event::KeyCode; use crossterm::event::KeyEvent; @@ -135,17 +134,16 @@ impl WidgetRef for &ModelUpgradePopup { lines.push("".into()); } - lines.push( - format!(" Codex is now powered by {GPT_5_CODEX_DISPLAY_NAME}, a new model that is") - .into(), - ); lines.push(Line::from(vec![ " ".into(), - "faster, a better collaborator, ".bold(), - "and ".into(), - "more steerable.".bold(), + "Introducing GPT-5-Codex".bold(), ])); lines.push("".into()); + lines.push( + " GPT-5-Codex works faster through easy tasks and harder on complex tasks,".into(), + ); + lines.push(" improves on code quality, and is more steerable with AGENTS.md.".into()); + lines.push("".into()); let create_option = |index: usize, option: ModelUpgradeOption, text: &str| -> Line<'static> { @@ -162,13 +160,13 @@ impl WidgetRef for &ModelUpgradePopup { lines.push(create_option( 0, ModelUpgradeOption::TryNewModel, - &format!("Yes, switch me to {GPT_5_CODEX_DISPLAY_NAME}"), + "Try the new GPT-5-Codex model", )); lines.push("".into()); lines.push(create_option( 1, ModelUpgradeOption::KeepCurrent, - "Not right now", + "Continue using current model", )); lines.push("".into()); lines.push(