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/word_selection.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client/shell/word_selection.rs') diff --git a/src/client/shell/word_selection.rs b/src/client/shell/word_selection.rs index 42a03fc2..f4329ced 100644 --- a/src/client/shell/word_selection.rs +++ b/src/client/shell/word_selection.rs @@ -189,8 +189,9 @@ impl ClientShellState { other => { if matches!(other, Ok(value) if !matches!(value, crate::api::schema::ResponseResult::PaneSelection { .. })) { - self.endpoint_error = - Some("endpoint returned an unexpected word-selection result".to_owned()); + self.set_endpoint_error( + "endpoint returned an unexpected word-selection result", + ); } self.cancel_word_selection(); return (true, Vec::new()); -- cgit v1.2.3