Skip to content

fix(update): ask before downloading, and let the user say later - #576

Merged
EVWorth merged 1 commit into
mainfrom
fix/update-confirm-popover
Sep 8, 2026
Merged

EVWorth merged 1 commit into
mainfrom
fix/update-confirm-popover

Conversation

@EVWorth

@EVWorth EVWorth commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Closes #353. Last of the update-system work.

The chip started a download of unknown size on a single click, and there was no way to put it off — it just stayed there.

Clicking now opens a small confirmation: the version, a link to the release notes, Download and Later.

"Later" is per version, and per session

Recorded as the version it applied to rather than a flag, so a newer release still surfaces — later means later for this update, not silence for every update. Not persisted either: a dismissal shouldn't outlive the run it was made in.

Two things the issue asks for that I deliberately left out

The download size. It wants "Download 100 MB and restart now?". The length isn't known until the download starts, when the Started event carries it. An invented estimate would be worse than no number.

The restart claim. The issue's copy says the app will restart when the download completes. That stopped being true in #573 — downloading and restarting are separate now, and the restart asks separately. The panel says "SQLPilot will ask before restarting", and there's a test asserting the wording doesn't promise a restart this code no longer performs.

Tests

Four. Two fail against the previous version; the other two describe behaviour that didn't exist to fail. Three existing tests now click through the confirmation, since that's the path a user takes.

1841 unit + 303 browser; tsc/dprint/eslint clean.

The update system is now done

Before Now
Manifest macOS pointed at .dmg; tarballs discarded correct artifacts; a missing one fails the release; 11 tests in CI
Restart fired unasked when the download finished a separate act the user chooses
Guards in the button, checked once before a long download in the action, re-checked before the restart
Failure permanent spinner with no way out reports and leaves a recoverable state
Checking every idle transition hit GitHub throttled; explicit requests always go
Races a check could hijack a running install checks stand off; version pinned
Packaging one file's existence, wrong for Flatpak five formats, sandbox-first, arch-aware
Consent one click started a large download asks first, and takes "later" for an answer

🤖 Generated with Claude Code

Closes #353.

The chip started a download of unknown size on a single click, and there was
no way to put it off — it simply stayed there.

Clicking now opens a small confirmation with the version, a link to the
release notes, and two choices. Download starts it; Later hides the chip.

Later is recorded as the version it applied to, not a flag. A newer release
still surfaces: "later" means later for this update, not silence for every
update. It is not persisted either — a dismissal should not outlive the run
it was made in.

Two things the issue asks for are deliberately absent.

It wants the size — "Download 100 MB and restart now?". The length is not
known until the download starts, when the Started event carries it. An
invented estimate would be worse than no number.

And it wants the copy to say the app will restart when the download
completes. That stopped being true in #573: downloading and restarting are
separate, and the restart asks separately. The panel says so instead, and a
test asserts the wording does not promise a restart this code no longer
performs.

Four tests. Two fail against the previous version; the other two describe
behaviour that did not exist to fail.

Three existing tests now click through the confirmation, since that is the
path a user takes.

Co-Authored-By: Claude Opus 5 <[email protected]>
@EVWorth
EVWorth merged commit 4ea2c94 into main Sep 8, 2026
10 checks passed
@EVWorth
EVWorth deleted the fix/update-confirm-popover branch September 8, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P1/bug] StatusBar installUpdate button is single-click — no preview, no 'later' option

1 participant