Repository navigation
fix(updates): check every minute, with timeouts; release 0.5.6 - #37
Merged
Merged
Conversation
SQLite before 3.54.0 can return uninitialized page-cache memory when it opens a database together with a `-wal` file of a different page size (CVE-2026-119375). LowQuery opens SQLite files the user picks, which may come from someone else, and bundles SQLite through rusqlite. rusqlite 0.40 pins libsqlite3-sys 0.38 (SQLite 3.53.2), so this moves to rusqlite 0.41.1 / libsqlite3-sys 0.39.1 (SQLite 3.54.1). In 0.41, `columns()` and `columns_with_metadata()` return iterators, so the three `.iter()` calls go.
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
force-pushed
the
fix/realtime-update-checks
branch
from
November 13, 2026 13:41
0f865e9 to
524ef73
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 LowQuery (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 keptcheckingset, so no later check ran until the app restarted.Updateresource held on the Rust side untilclose(); replaced ones were never closed.Now:
Validation
bun run check(0 errors),bun test(99 pass),bun run build: OK.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. These are release downloads, not REST API calls, so the 60/hour unauthenticated API limit does not apply. Same change as LowBloat/LowNotes#125.Installed copies keep their current cadence until they update to a release with this change.
Stacked on #38 (SQLite 3.54.1, RUSTSEC-2026-0459), which
cargo denyneeds; merge #38 first. Release 0.5.6 lists both fixes in the CHANGELOG.