Lightweight coding agent that runs in your terminal
Rust
Move PR-style review to top (#4486)
dedrisian-oai87a654cf6bf7
diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rsindex 9a36addb0a..981e0dfa94 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<SelectionItem> = 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,