Skip to content

Updates: check every minute, with timeouts; release 0.2.3 - #4

Merged
FabioHAraujo merged 2 commits into
mainfrom
fix/realtime-update-checks
Nov 13, 2026
Merged

FabioHAraujo merged 2 commits into
mainfrom
fix/realtime-update-checks

Conversation

@FabioHAraujo

Copy link
Copy Markdown
Contributor

Problem and resulting behavior

New releases took up to 10 minutes to reach an open LowMail (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 kept checking set, so no later check ran until the app restarted.
  • Every check returns an Update resource held on the Rust side until close(); replaced ones were never closed.

Now:

  • Checks run 5 s after start, every 60 s, and when the window gains focus or becomes visible again (from the tray, another desktop), at most once per 15 s.
  • Checks time out after 30 s; the background download after 15 min. Installing from the dialog keeps no limit.
  • Updates that are not kept are closed.
  • A version already found is kept until the restart. A failed background download is no longer repeated every minute; the dialog downloads and installs it in one go, as before.
  • A manual check while the background download runs opens the dialog instead of doing nothing.

Mobile builds are unchanged (supported is still desktop only).

Validation

  • bun run check (0 errors), bun run test, bun run build, bun run lint:ui (clean): OK.
  • No Rust changes, so the cargo checks were not rerun locally (CI runs them).

Additional context

The manifest is github.com/.../releases/latest/download/latest.json: the redirect is no-cache and the asset URL is per version, so a new release is visible on the next check. These are release downloads, not REST API calls, so the 60/hour unauthenticated API limit does not apply. Same change as LowBloat/LowNotes#125 and LowBloat/LowQuery#37.

Installed copies keep their current cadence until they update to a release with this change.

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 check also left its Update
resource open on the Rust side.

The app now checks every minute, like Zynko, and again when the window
gains focus or becomes visible (at most once per 15 seconds). Checks time
out after 30 seconds and the background download after 15 minutes; updates
that are not kept are closed. A version already found is not downloaded
again every minute after a failed background download: installing from the
dialog downloads it. A manual check during the background download opens
the dialog instead of doing nothing.
@FabioHAraujo FabioHAraujo changed the title Updates: check every minute, with timeouts Updates: check every minute, with timeouts; release 0.2.3 Nov 13, 2026
@FabioHAraujo
FabioHAraujo merged commit 2bcc1e9 into main Nov 13, 2026
3 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