From dde365215e43a3cd86dfb884fe472de463211d9a Mon Sep 17 00:00:00 2001 From: Daniel Edrisian Date: Mon, 15 Sep 2025 21:18:29 -0700 Subject: [PATCH] Add /review --- codex-rs/tui/src/chatwidget.rs | 1 + codex-rs/tui/src/history_cell.rs | 5 +++++ codex-rs/tui/src/slash_command.rs | 3 +++ 3 files changed, 9 insertions(+) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index c03e7d3bc5..8e003dd8f1 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -871,6 +871,7 @@ impl ChatWidget { self.clear_token_usage(); self.app_event_tx.send(AppEvent::CodexOp(Op::Compact)); } + SlashCommand::Review => {} SlashCommand::Model => { self.open_model_popup(); } diff --git a/codex-rs/tui/src/history_cell.rs b/codex-rs/tui/src/history_cell.rs index d6add6d328..b4b9c9657d 100644 --- a/codex-rs/tui/src/history_cell.rs +++ b/codex-rs/tui/src/history_cell.rs @@ -652,6 +652,11 @@ pub(crate) fn new_session_info( "/model".into(), " - choose what model and reasoning effort to use".dim(), ]), + Line::from(vec![ + " ".into(), + "/review".into(), + " - review current changes and find issues".dim(), + ]), ]; CompositeHistoryCell { diff --git a/codex-rs/tui/src/slash_command.rs b/codex-rs/tui/src/slash_command.rs index 3268a92a2d..433c0a6d7f 100644 --- a/codex-rs/tui/src/slash_command.rs +++ b/codex-rs/tui/src/slash_command.rs @@ -14,6 +14,7 @@ pub enum SlashCommand { // more frequently used commands should be listed first. Model, Approvals, + Review, New, Init, Compact, @@ -34,6 +35,7 @@ impl SlashCommand { SlashCommand::New => "start a new chat during a conversation", SlashCommand::Init => "create an AGENTS.md file with instructions for Codex", SlashCommand::Compact => "summarize conversation to prevent hitting the context limit", + SlashCommand::Review => "review my current changes and find issues", SlashCommand::Quit => "exit Codex", SlashCommand::Diff => "show git diff (including untracked files)", SlashCommand::Mention => "mention a file", @@ -61,6 +63,7 @@ impl SlashCommand { | SlashCommand::Compact | SlashCommand::Model | SlashCommand::Approvals + | SlashCommand::Review | SlashCommand::Logout => false, SlashCommand::Diff | SlashCommand::Mention