Repository navigation
Track the Update download in main and show it on the Dock/taskbar icon (#394) - #397
Merged
Conversation
#394) Main holds an UpdateDownload state (idle, connecting, downloading, restarted, done) and mirrors it on the window's progress bar. A reopened main window gets the held bar back. downloadUpdate's rejection is swallowed; the error listener reports it. Replaces the tests "Yes downloads the update with no window, bar, or percent" and "a finished download quits to install"; the source scan drops its download-progress ban. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jtklein-agents
merged commit Nov 27, 2026
5656c82
into
spec/393-update-download-progress
8 checks passed
jtklein-agents
deleted the
394-track-the-update-download-in-main-and-show-it-on-the-dock-taskbar-icon
branch
November 27, 2026 09:58
11 tasks
jtklein-agents
added a commit
that referenced
this pull request
Nov 27, 2026
AntonelliLab#528) * Track the Update download in main and show it on the Dock/taskbar icon (#394) (#397) Main holds an UpdateDownload state (idle, connecting, downloading, restarted, done) and mirrors it on the window's progress bar. A reopened main window gets the held bar back. downloadUpdate's rejection is swallowed; the error listener reports it. Replaces the tests "Yes downloads the update with no window, bar, or percent" and "a finished download quits to install"; the source scan drops its download-progress ban. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Show the Downloading update dialog from live progress events (#395) (#398) Main sends each Update download state to the window's page on UPDATE_DOWNLOAD. The page subscribes through rendererBridge.onUpdateDownload, the store keeps the latest state, and UpdateDownloadDialog follows it until the state returns to idle. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Bring the Downloading update dialog back after a page reload or reopened window (#396) (#399) A reloaded page or a window reopened from the Dock mid-download now shows the dialog at once. rendererBridge.getUpdateDownload() invokes GET_UPDATE_DOWNLOAD, which main answers from the held UpdateDownload state; the run list seeds updateDownload from it next to the onUpdateDownload subscription. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #394. Part of #393.
Summary
Main holds one
UpdateDownloadstate (exported fromsrc/common/rendererBridge.ts) and mirrors it on the main window's Dock/taskbar bar.Tests replaced (per
CODING_STANDARDS.mdoverlapping tests):The source scan "the shell opens no update progress window" drops its
download-progressban and keeps itselectron-progressbarabsence checks (ProgressBaris now matched as a whole word sosetProgressBarpasses).Evidence
emit('download-progress', 40%)→ no bar call, no state.After:
vitest run src/main/updates.test.ts→ 13 passed, including:Full suite: 71 files, 493 tests pass; lint and typecheck clean. Not run in the packaged app, so the Dock/taskbar bar is unseen on real hardware.
Merge Danger
Door: two-way
Blast Radius: updater
Only the Update download path changes; the dialogs,
autoDownload,quitAndInstalland window close behaviour are untouched. Worst case is a wrong or stuck icon bar during an update.🤖 Generated with Claude Code