From 3834fd3d0f77a809cf3e394fca31fd036d3173dd Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Sun, 13 Sep 2026 21:14:00 +0400 Subject: fix: auto-expire worktree action error banners (#4063) * fix: auto-expire worktree action error banners refs #1827 * fix: restart endpoint error timeout on repeated errors Route every transient client-side action error through a setter that installs a fresh deadline, so an identical repeated message cannot inherit an older, nearly-expired deadline. refs #1827 * test: derive endpoint error expiry assertions from stored deadline refs #1827 --- src/client/shell/mouse.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/client/shell/mouse.rs') diff --git a/src/client/shell/mouse.rs b/src/client/shell/mouse.rs index 912e81ed..7b4c0cb2 100644 --- a/src/client/shell/mouse.rs +++ b/src/client/shell/mouse.rs @@ -123,8 +123,7 @@ impl ClientShellState { Ok(_) => { self.pane_scroll_queued.remove(&pane_id); self.pane_scroll_targets.remove(&pane_id); - self.endpoint_error = - Some("endpoint returned an unexpected pane-scroll result".to_owned()); + self.set_endpoint_error("endpoint returned an unexpected pane-scroll result"); true } Err(_) => { -- cgit v1.2.3