Skip to content

fix(desktop): re-check the update feed after an update is postponed - #369

Merged
quickbeard merged 1 commit into
mainfrom
fix/deferred-update-recheck
Sep 15, 2026
Merged

quickbeard merged 1 commit into
mainfrom
fix/deferred-update-recheck

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

Summary

  • createUpdaterController.check() no longer returns early while the state is available. It asks the feed again: a newer version replaces the known one, a withdrawn one lands on up-to-date, and a re-check that fails keeps the known version rather than withdrawing it to error (the ten-minute timer would otherwise erase a known update over a blip in the feed).
  • UpdatePrompt tracks the version it asked about instead of a once-per-run boolean, so a newer release found after Later is announced the same way the first one was.
  • Tests replace "a further check while available is a no-op" with the newer-version, failed-re-check and withdrawn-update cases.
  • DIVERGENCES.md rows for the update controls and the launch prompt are updated; CHANGELOG.md gets an Unreleased entry under Desktop.

Why

Answering Later to an update left the app holding on to that version: every later check, including the periodic one, came back with the same answer without asking the feed, so a release published while the app stayed open was invisible until the next relaunch.

Verification

  • bun test src/main/updater-controller.test.ts in packages/desktop: 22 pass.
  • bun typecheck in packages/desktop and packages/app: clean.
  • bun run test:unit in packages/app: 823 pass.

🤖 Generated with Claude Code

A check from the `available` state returned the known version without
asking the feed, so once the user answered Later the ten-minute timer
could never find a newer release until relaunch. The controller now
re-asks the feed from `available`: a newer version replaces the known
one, a withdrawn one lands on up-to-date, and a re-check that fails
keeps the known version rather than withdrawing it. The launch prompt
tracks the version it asked about instead of a once-per-run flag, so
the newer release is announced too.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@quickbeard
quickbeard merged commit 8d7403b into main Sep 15, 2026
0 of 5 checks passed
@quickbeard
quickbeard deleted the fix/deferred-update-recheck branch September 15, 2026 01:57
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