feat: show the version when starting Codex (#1182)

The TypeScript version of the CLI shows the version when it starts up,
which is helpful when users share screenshots (and nice to know, as a
user).
This commit is contained in:
Michael Bolin
2025-05-30 23:24:36 -07:00
committed by GitHub
parent e81327e5f4
commit 1159eaf04f
2 changed files with 9 additions and 1 deletions

View File

@@ -130,10 +130,13 @@ impl HistoryCell {
history_entry_count: _,
} = event;
if is_first_event {
const VERSION: &str = env!("CARGO_PKG_VERSION");
let mut lines: Vec<Line<'static>> = vec![
Line::from(vec![
"OpenAI ".into(),
"Codex".bold(),
format!(" v{}", VERSION).into(),
" (research preview)".dim(),
]),
Line::from(""),