Skip to content

fix(updates): show the update prompt where it can be seen - #29

Merged
webtools-dotcom merged 1 commit into
mainfrom
fix/visible-updates
Sep 28, 2026
Merged

webtools-dotcom merged 1 commit into
mainfrom
fix/visible-updates

Conversation

@webtools-dotcom

Copy link
Copy Markdown
Owner

Problem

After publishing v0.13.1, installed 0.13.0 copies never showed the update. The check itself worked — the updater feed returns 0.13.1, signed for all three installer types — but the banner was fixed to the bottom-right of the main window's DOM. The native tab webview is drawn over that area, so with any page open the banner was invisible. (Same class of bug as window.confirm() in CLAUDE.md.)

Fix

  • Toolbar pill (UpdateButton): "Update to x.y.z" next to the bookmark star, where no page can cover it. Shows download progress, then Restart, and "Update failed · retry" instead of a toast nobody could see.
  • Settings → Check for updates: a manual check with a visible result — up to date, available, or couldn't reach GitHub.
  • Shared state in stores/updates.ts; UpdateBanner.tsx removed. Still one automatic check per launch, and nothing downloads until the user clicks.

Testing

  • pnpm check-types, pnpm lint, pnpm test (80), pnpm knip
  • Ran a dev build with its version temporarily set to 0.13.0: the toolbar showed Update to 0.13.1 within seconds of launch, and Settings reported "Version 0.13.1 is available". Did not click Update (it would install over the real copy).

Note for existing users

Copies on 0.13.0/0.13.1 still have the old banner. It is visible on a blank new tab (Ctrl+T), so the release notes for the next version should mention that.

The update banner was fixed to the bottom-right of the main window's DOM,
which the native tab webview is drawn over. With any page open it was
invisible, so installed copies never showed an available update.

- The prompt is now a toolbar pill ("Update to x.y.z"), which no page
  can cover: shows download progress, then Restart, and says when the
  install failed instead of failing silently.
- Settings gains a "Check for updates" button with a visible result
  (up to date / available / couldn't reach GitHub).
- Update state lives in stores/updates.ts, shared by both.

Verified in a dev build posing as 0.13.0: the pill appeared for 0.13.1
and the Settings check reported it.
@webtools-dotcom
webtools-dotcom merged commit 7da3082 into main Sep 28, 2026
2 checks passed
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.

1 participant