Skip to content

fix(updates): bypass metadata cache for manual checks - #898

Merged
nixuuu merged 1 commit into
devfrom
fix/force-update-check-refresh
Nov 16, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/force-update-check-refresh

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 16, 2026

Copy link
Copy Markdown
Member

Change

Manual update checks in the sidebar version popover and Settings → App updates could reuse the 15-minute release catalog introduced in #486 and miss a newly published build. They now revalidate discovery metadata over the network immediately, including remote app checks, channel changes and release-found notifications.

Forced reads bypass cached results, cached failures and the index failure cooldown, send Cache-Control: no-cache, and retain ETag/304 validation. API fallback pages are refreshed too. Automatic checks reuse the refreshed cache; active requests/downloads stay shared and API rate-limit backoff remains enforced. Regression coverage includes a newer release arriving while an installer is already staged. Updated the desktop and updates documentation.

Fixes: #486

Verification

Passed locally:

  • Targeted check:tmp runs for packages/updater/src/catalog.test.ts, apps/desktop/test/update-feed.test.ts, apps/desktop/test/update-controller.test.ts, and apps/gateway/src/updates/runtime.test.ts (32 tests total; temporary directories clean).
  • Desktop package typecheck.
  • Formatting and lint on edited TypeScript files; git diff --check.

CI owns repository-wide typecheck, generated-code checks, lint, formatting, test shards and selected builds. Native installer execution was not performed; there are no layout or UI text changes.

Manual checks now revalidate release discovery metadata over the network, including remote app checks, channel changes and release-found nudges. Keep automatic cache reuse, in-flight deduplication, staged installers and API rate-limit backoff.

Fixes: #486
@nixuuu
nixuuu enabled auto-merge (squash) November 16, 2026 23:29
@nixuuu
nixuuu merged commit 5400c88 into dev Nov 16, 2026
15 checks passed
@nixuuu
nixuuu deleted the fix/force-update-check-refresh branch November 16, 2026 23:35
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