brain: Return to history after rejection
469fcb79f5b17813a764c3f4edf9a868812968d9
Return to the history table after rejecting the focused commit so the updated decision is visible immediately. Assisted-by: Codex:gpt-5.6-sol
1 parent
55247b16
crates/brain/src/session.rs
+1 -0
| 623 | 623 | if matches!( |
|
| 624 | 624 | self.current()?.viewer.state().focus, |
|
| 625 | 625 | Some(DiffFocus::Commit) |
|
| 626 | 626 | ) { |
|
| 627 | 627 | self.toggle_commit_rejected(self.current)?; |
|
| 628 | + | self.next_tab()?; |
|
| 628 | 629 | } |
|
| 629 | 630 | Ok(Control::Redraw) |
|
| 630 | 631 | } |
|
| 631 | 632 | Event::Key(Key::Char('d')) => { |
|
| 632 | 633 | if matches!( |
a.rs
+0 -0