Repository navigation
fix(updates): check every minute and keep the found version on offer; release v0.5.3 - #125
Merged
Merged
Conversation
This was referenced Nov 13, 2026
A new release took up to 10 minutes to show up, and a check that hung (after sleep or a network change) had no timeout, so every later check waited on it until the app restarted. Each native check also left its Update resource open on the Rust side. The checker now runs every minute, like Zynko, and again when the window gains focus or becomes visible (at most once per 15 seconds). Native checks time out after 30 seconds and the background download after 15 minutes; updates that are not kept are closed. After its dialog closes, the found version stays on offer in the title bar (Restart to update / Update available) unless skipped, and a newer release replaces it. Automatic checks wait while the dialog is open.
FabioHAraujo
force-pushed
the
fix/realtime-update-checks
branch
from
November 13, 2026 13:23
c4094c7 to
34f3ebd
Compare
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.
Problem and resulting behavior
New releases took up to 10 minutes to reach an open LowNotes (Zynko, by comparison, checks every minute). Two bugs made it worse:
check()had no timeout. A request that hung after sleep or a network change keptbusyset, so no later check ran until the app restarted.Updateresource held on the Rust side untilclose(); discarded ones were never closed.Now:
CHECK_TIMEOUT_MS); the background download after 15 min. The dialog's own download keeps no limit. The Rust-side external check already had a 15 s timeout.discardUpdate.titlebar.updateAvailable/titlebar.updateReadyin all three locales. README and CHANGELOG updated.Validation
bun run version:check,bun run check,bun run check:e2e,bun test(120 pass), Python script tests: OK.bun run buildandbun run test:e2e(47 pass), including the new title bar test: after Later, the title bar offers Restart to update, which reopens the dialog; the check carries the 30 s timeout.Additional context
The manifest is
github.com/.../releases/latest/download/latest.json: the redirect isno-cacheand the asset URL is per version, so a new release is visible on the next check. One check is three small requests (two redirects and a ~3 KB JSON). These are release downloads, not REST API calls, so the 60/hour unauthenticated API limit does not apply.Installed copies keep their current cadence until they update to a release with this change.