Skip to content

Ignore update checks superseded by release choices - #403

Merged
elripalda merged 3 commits into
elripalda:mainfrom
thehobbit85:codex/fix-393-stale-update-check
Nov 25, 2026
Merged

elripalda merged 3 commits into
elripalda:mainfrom
thehobbit85:codex/fix-393-stale-update-check

Conversation

@thehobbit85

@thehobbit85 thehobbit85 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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 --check is 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.

@thehobbit85
thehobbit85 force-pushed the codex/fix-393-stale-update-check branch from a0f2d61 to 00a074a Compare November 25, 2026 08:10
@Xarishark Xarishark self-assigned this Nov 25, 2026
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 Xarishark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All notes resolved and CI passed. Approving.

@elripalda
elripalda merged commit 9768b5a into elripalda:main Nov 25, 2026
6 checks passed
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]>
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.

3 participants