Repository navigation
Ignore update checks superseded by release choices - #403
Merged
elripalda merged 3 commits intoNov 25, 2026
Merged
Conversation
thehobbit85
force-pushed
the
codex/fix-393-stale-update-check
branch
from
November 25, 2026 08:10
a0f2d61 to
00a074a
Compare
One function now says whether a game is still the install an update check looked at, so Resume Updates can use it too. Notes that a finished download is caught by the new install record every download writes.
An update paused before the player installed, picked or rolled back a version was found for the old install. Resuming now checks it against the install the check looked at and drops it if that changed, and a finished download clears it at once.
Xarishark
approved these changes
Nov 25, 2026
Xarishark
left a comment
Collaborator
There was a problem hiding this comment.
All notes resolved and CI passed. Approving.
This was referenced Nov 25, 2026
elripalda
added a commit
that referenced
this pull request
Nov 25, 2026
#403 (an update check can't overwrite a newer choice) and #573 (an update check leaves a game being uninstalled alone) both changed checkUpdates and each was tested against main without the other. Once both were in, each one's test context was missing what the other added (S.uninstalling and parentId; stillChecked), so 9 tests failed on main. The code is right; the two test setups now include both. Co-authored-by: Ripalda <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
An update check can finish after the player has selected a different release. Its old response was still accepted and could start an automatic install over the new choice, including a newly pinned version.
Snapshot the installation identity and pending download selection before checking, then discard results for games that changed or became pinned. Updates for unchanged games remain available and still install automatically when enabled.
Nine behavioral tests execute the production check with a delayed response: eight fail before this fix, and all pass afterward. They cover pinned and newly selected releases, changed installations/projects, a download selected before library refresh, manual checks, and unaffected games. On current
main(3a5f347): full UI suite 992 passed / 11 platform skips; full Rust suite 1,156 passed / 1 ignored.git diff --checkis clean.Refs #393. This proves and fixes a launcher update race; it does not establish the exact cause of the reported Longshot binary returning to 3.0.0.