Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

feat: tweak onboarding strings (#3650)

ae5c583fe89bbd
diff --git a/codex-rs/core/src/config.rs b/codex-rs/core/src/config.rs
index abaa2f1c85..f96933069d 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 5ed53e4d2f..12325074c0 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(