Repository navigation
fix(updates): bypass metadata cache for manual checks - #898
Merged
Merged
Conversation
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
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.
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:
check:tmpruns forpackages/updater/src/catalog.test.ts,apps/desktop/test/update-feed.test.ts,apps/desktop/test/update-controller.test.ts, andapps/gateway/src/updates/runtime.test.ts(32 tests total; temporary directories clean).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.