fix: address review findings in updater flow (#114)
- Add console.error logging to startup update check catch block - Add state guard to downloadUpdate() to prevent calls outside 'available' state - Track and dismiss 'available' toast when download starts or completes - Include version number in downloading status text Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
6650289dcb
commit
149acf26bb
+1
-1
@@ -145,7 +145,7 @@ export type UpdateStatus =
|
||||
| { state: 'checking'; userInitiated?: boolean }
|
||||
| { state: 'available'; version: string }
|
||||
| { state: 'not-available'; userInitiated?: boolean }
|
||||
| { state: 'downloading'; percent: number }
|
||||
| { state: 'downloading'; percent: number; version: string }
|
||||
| { state: 'downloaded'; version: string }
|
||||
| { state: 'error'; message: string; userInitiated?: boolean }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user