From ac32c1a19bff6373a3b24618f8e553834e960bdc Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Fri, 8 May 2026 14:56:14 +0300 Subject: fix: clear agent toast after focus --- src/app/input/mouse.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/app') diff --git a/src/app/input/mouse.rs b/src/app/input/mouse.rs index d0c33138..4a074a2e 100644 --- a/src/app/input/mouse.rs +++ b/src/app/input/mouse.rs @@ -1015,6 +1015,7 @@ impl AppState { self.switch_workspace(ws_idx); self.switch_tab(tab_idx); self.focus_pane(target.pane_id); + self.toast = None; self.mode = Mode::Terminal; } @@ -1303,6 +1304,7 @@ mod tests { assert_eq!(app.state.active, Some(1)); assert_eq!(app.state.workspaces[1].focused_pane_id(), Some(target_pane)); + assert!(app.state.toast.is_none()); assert_eq!(app.state.mode, Mode::Terminal); } -- cgit v1.2.3