From 87a654cf6bf7adaa1d3e785442e7629db8a8205f Mon Sep 17 00:00:00 2001 From: dedrisian-oai Date: Mon, 29 Sep 2025 23:03:37 -0700 Subject: [PATCH] Move PR-style review to top (#4486) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Screenshot 2025-09-29 at 10 31 22 PM --- codex-rs/tui/src/chatwidget.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 9a36addb..981e0dfa 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -1778,6 +1778,20 @@ impl ChatWidget { pub(crate) fn open_review_popup(&mut self) { let mut items: Vec = Vec::new(); + items.push(SelectionItem { + name: "Review against a base branch".to_string(), + description: Some("(PR Style)".into()), + is_current: false, + actions: vec![Box::new({ + let cwd = self.config.cwd.clone(); + move |tx| { + tx.send(AppEvent::OpenReviewBranchPicker(cwd.clone())); + } + })], + dismiss_on_select: false, + search_value: None, + }); + items.push(SelectionItem { name: "Review uncommitted changes".to_string(), description: None, @@ -1811,20 +1825,6 @@ impl ChatWidget { search_value: None, }); - items.push(SelectionItem { - name: "Review against a base branch".to_string(), - description: None, - is_current: false, - actions: vec![Box::new({ - let cwd = self.config.cwd.clone(); - move |tx| { - tx.send(AppEvent::OpenReviewBranchPicker(cwd.clone())); - } - })], - dismiss_on_select: false, - search_value: None, - }); - items.push(SelectionItem { name: "Custom review instructions".to_string(), description: None,