From 1159eaf04f26a95d2ffdfcffb6b7368e47996f4f Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Fri, 30 May 2025 23:24:36 -0700 Subject: [PATCH 1/2] 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). --- codex-rs/exec/src/event_processor.rs | 7 ++++++- codex-rs/tui/src/history_cell.rs | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/codex-rs/exec/src/event_processor.rs b/codex-rs/exec/src/event_processor.rs index 89ad7d7cde..5462736b5f 100644 --- a/codex-rs/exec/src/event_processor.rs +++ b/codex-rs/exec/src/event_processor.rs @@ -120,7 +120,12 @@ impl EventProcessor { /// for the session. This mirrors the information shown in the TUI welcome /// screen. pub(crate) fn print_config_summary(&mut self, config: &Config, prompt: &str) { - ts_println!(self, "OpenAI Codex (research preview)\n--------"); + const VERSION: &str = env!("CARGO_PKG_VERSION"); + ts_println!( + self, + "OpenAI Codex v{} (research preview)\n--------", + VERSION + ); let entries = vec![ ("workdir", config.cwd.display().to_string()), diff --git a/codex-rs/tui/src/history_cell.rs b/codex-rs/tui/src/history_cell.rs index 41c2049313..b41c8ac62b 100644 --- a/codex-rs/tui/src/history_cell.rs +++ b/codex-rs/tui/src/history_cell.rs @@ -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> = vec![ Line::from(vec![ "OpenAI ".into(), "Codex".bold(), + format!(" v{}", VERSION).into(), " (research preview)".dim(), ]), Line::from(""), From 953fd5324b260643f0f84df591115400eb13dbea Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Fri, 30 May 2025 23:30:33 -0700 Subject: [PATCH 2/2] fix: disable agent reasoning output by default in the GitHub Action --- .github/actions/codex/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/codex/action.yml b/.github/actions/codex/action.yml index 715423d06a..284d2ff86f 100644 --- a/.github/actions/codex/action.yml +++ b/.github/actions/codex/action.yml @@ -15,14 +15,14 @@ inputs: codex_args: description: "A whitespace-delimited list of arguments to pass to Codex. Due to limitations in YAML, arguments with spaces are not supported. For more complex configurations, use the `codex_home` input." required: false - default: "--full-auto" + default: "--config hide_agent_reasoning=false --full-auto" codex_home: description: "Value to use as the CODEX_HOME environment variable when running Codex." required: false codex_release_tag: description: "The release tag of the Codex model to run." required: false - default: "codex-rs-d519bd8bbd1e1fd9efdc5d68cf7bebdec0dd0f28-1-rust-v0.0.2505270918" + default: "codex-rs-1159eaf04f26a95d2ffdfcffb6b7368e47996f4f-1-rust-v0.0.2505302325" runs: using: "composite"