diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-13 21:14:00 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-13 19:14:00 +0200 |
| commit | 3834fd3d0f77a809cf3e394fca31fd036d3173dd (patch) | |
| tree | b24702d12d9b951a8bb6cbe2a4386ec3b3b42152 /src/client/shell/config.rs | |
| parent | f0cb0e0683953e7dbc32d911268931f25d3e448f (diff) | |
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
Diffstat (limited to 'src/client/shell/config.rs')
| -rw-r--r-- | src/client/shell/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/shell/config.rs b/src/client/shell/config.rs index 222e027e..2d16b00f 100644 --- a/src/client/shell/config.rs +++ b/src/client/shell/config.rs @@ -63,7 +63,7 @@ impl ClientShellState { remote_collapsed_groups, }; if let Err(error) = preferences::store(path, preferences) { - self.endpoint_error = Some(error); + self.set_endpoint_error(error); outcome.repaint = true; } } @@ -97,7 +97,7 @@ impl ClientShellState { .config .apply_snapshot_keybindings(profile.as_deref(), &commands) { - self.endpoint_error = Some(err); + self.set_endpoint_error(err); } } } |
