fix(versions): preserve inactive update settings and recover builder reuse #360

Merged
HumanBean merged 3 commits from HumanBean/LongshotLauncher:fix/version-library-followup into main 2026-11-29 01:27:51 +00:00
Owner

An update launched from the Versions list could use the active profile’s original game even when a different installation was being updated. The same release can also fail to install when an unusable installed builder blocks a good prefetch, and Storage omits discovered copies that already appear in Versions. Removal could also stop on runtime settings left by a game run without an active profile. This follows up on the merged launcher changes.

Changes

  • Start an inactive version’s update with its registered source. Leave the active profile and launcher defaults alone if a different version is selected when the build completes. Keep the active version’s explicit profile source override.

  • Treat malformed builder records and executables that cannot be opened as cache misses. Try the next installed copy, the prefetch, or the normal signed download path. Reclaim redundant downloads only for the version that just built successfully.

  • Count every described version in Storage, including copies discovered in the configured library. Keep unfinished managed builds in the storage totals and count each folder once.

  • Before explicit removal, recover version-local settings to the sole associated profile if its settings file is absent. Keep differing settings or settings with ambiguous ownership in the data folder’s recovered-settings/. Existing profile settings never get overwritten. Keep protecting saves, original game files, settings in unexpected locations, and settings beside an older unrecognized build.

Testing

  • Verified with synthetic launcher data that an inactive update reads its own source and preserves the profile and launcher settings, adding a release falls back past a malformed receipt, cleanup preserves an unrelated prefetch, and Storage exposes Remove for both managed and discovered copies.
  • Rust formatting, locked workspace Clippy, 15 translation catalogs, and 46 release tests passed. The Linux launcher suite reported 225 passed, 21 failed, and one ignored on the serialized run. The 21 failures also occur on the identical merge tree of #359. A pipe-reader timing test failed once and passed on rerun.
  • All 12 focused version tests passed. They cover migration into the associated profile, recovery without a clear owner, preservation of existing profile settings, and continued protection of saves and settings outside recognized builds.
  • Reviewed the Storage view with synthetic data. Native Windows behavior remains to be tested.
An update launched from the Versions list could use the active profile’s original game even when a different installation was being updated. The same release can also fail to install when an unusable installed builder blocks a good prefetch, and Storage omits discovered copies that already appear in Versions. Removal could also stop on runtime settings left by a game run without an active profile. This follows up on [the merged launcher changes](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/359). ## Changes - Start an inactive version’s update with its registered source. Leave the active profile and launcher defaults alone if a different version is selected when the build completes. Keep the active version’s explicit profile source override. - Treat malformed builder records and executables that cannot be opened as cache misses. Try the next installed copy, the prefetch, or the normal signed download path. Reclaim redundant downloads only for the version that just built successfully. - Count every described version in Storage, including copies discovered in the configured library. Keep unfinished managed builds in the storage totals and count each folder once. - Before explicit removal, recover version-local settings to the sole associated profile if its settings file is absent. Keep differing settings or settings with ambiguous ownership in the data folder’s `recovered-settings/`. Existing profile settings never get overwritten. Keep protecting saves, original game files, settings in unexpected locations, and settings beside an older unrecognized build. ## Testing - Verified with synthetic launcher data that an inactive update reads its own source and preserves the profile and launcher settings, adding a release falls back past a malformed receipt, cleanup preserves an unrelated prefetch, and Storage exposes Remove for both managed and discovered copies. - Rust formatting, locked workspace Clippy, 15 translation catalogs, and 46 release tests passed. The Linux launcher suite reported 225 passed, 21 failed, and one ignored on the serialized run. The 21 failures also occur on the identical merge tree of #359. A pipe-reader timing test failed once and passed on rerun. - All 12 focused version tests passed. They cover migration into the associated profile, recovery without a clear owner, preservation of existing profile settings, and continued protection of saves and settings outside recognized builds. - Reviewed the Storage view with synthetic data. Native Windows behavior remains to be tested.
fix(versions): keep inactive updates and builder reuse isolated
Some checks failed
CI / What the change needs (pull_request) Successful in 6s
PR title / Conventional Commit title (pull_request) Successful in 7s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 11s
CI / Release packages and stable upgrades (pull_request) Failing after 59s
CI / Rust formatting, lint and tests (pull_request) Failing after 9m10s
58d16a7c45
Member

Possibly related, for context:

  • PR #358 WIP: fix(tests): the launcher's tests follow version folders and builder protocol 2 — Open tests-only PR touches builder reuse and version/storage fixtures changed here
  • issue #350 Launcher: the same version is listed twice (two rows with one tag) — Open report of duplicate version rows; this changes version discovery and Storage counts
Possibly related, for context: - PR #358 WIP: fix(tests): the launcher's tests follow version folders and builder protocol 2 — Open tests-only PR touches builder reuse and version/storage fixtures changed here - issue #350 Launcher: the same version is listed twice (two rows with one tag) — Open report of duplicate version rows; this changes version discovery and Storage counts
Author
Owner

Synthetic preview of the Installed versions section with a managed installation and a discovered copy. Both use the existing removal confirmation.

longshot-pr359-followup-storage.png

Synthetic preview of the Installed versions section with a managed installation and a discovered copy. Both use the existing removal confirmation. ![longshot-pr359-followup-storage.png](https://git.magicbean.dev/attachments/d4a14fd2-f8af-4664-b968-b89a60a75154)
fix(versions): allow removal with generated runtime settings
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 17s
PR title / Conventional Commit title (pull_request) Successful in 8s
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
c9969879f6
fix(versions): recover profile settings before removing a build
Some checks failed
CI / What the change needs (pull_request) Successful in 6s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 11s
PR title / Conventional Commit title (pull_request) Successful in 5s
CI / Release packages and stable upgrades (pull_request) Failing after 1m49s
CI / Rust formatting, lint and tests (pull_request) Failing after 13m3s
43711af61b
HumanBean changed title from WIP: fix(versions): preserve inactive update settings and recover builder reuse to fix(versions): preserve inactive update settings and recover builder reuse 2026-11-29 01:27:48 +00:00
HumanBean deleted branch fix/version-library-followup 2026-11-29 01:27:52 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!360
No description provided.