You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1][bug] Update safety checks live in the button, and run before a download that can take minutes #570
The guard is in the view, not the action. There is one caller today, so it holds — but the store action is the boundary. The next caller (a menu item, a keyboard shortcut, a settings dialog) gets no protection and nothing signals that it should provide its own. This is the same shape as the grid's save path before #529.
The checks run before the download, and the restart happens after it. A download can take minutes. installUpdate ends with an unconditional relaunch(), so a query started or a tab edited during the download is destroyed by a restart that was authorised against a state that no longer exists.
Expected
The refusal lives with the action, so it cannot be bypassed by a new caller, and is re-checked after the download completes and before the process restarts. A restart that discards work should be something the user confirms at the moment it happens, not a consequence of a click made several minutes earlier.
Related: #344 (relaunch is unconditional), #353 (no preview before install).
Activity
fix(update): separate downloading from restarting, and put the refusa…
EVWorth commentedon Sep 11, 2026
Already fixed, in 6ecba3b ("separate downloading from restarting, and put the refusal in the action", #573).
Covered in settingsStore.test.ts, which cites this issue number at the relevant assertions.