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:
Jinjing
2026-03-26 07:35:52 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 6650289dcb
commit 149acf26bb
8 changed files with 83 additions and 14 deletions
+1 -1
View File
@@ -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 }