fix(builder): play holds the launcher's save lock while the game runs #3174

Merged
HumanBean merged 3 commits from neotoxic/Longshot:fix/play-holds-save-lock into main 2026-12-04 17:58:05 +00:00
Contributor

The launcher can replace a save while the game is running: it edits saves under the profile's save lock, but nothing
holds that lock once the game runs, nor for a game started without the launcher. This is the Longshot follow-up llun
asked for on MagicBeanDev/LongshotLauncher#366: the builder's play holds the save lock while the game runs.

Summary

What was wrong. The launcher (MagicBeanDev/LongshotLauncher#366) changes a save (an import, a copy, an edit on its
Progress page) under the profile's save lock, <profile>/.longshot-save-transfer.lock. It holds that lock itself only
from just before it starts the builder until the builder runs, then lets it go. From then on, and for a game started
without the launcher (Steam, a shortcut, longshot-builder play), nothing held it: an edit could replace a save under
a running game, which then wrote its own copy back over the edit or read a file that changed under it. llun's request
on that PR: "open the Longshot follow-up, with the builder's play holding the save lock while the game runs".

What this changes. play takes the same lock around each run of the game, a restart's too (Restart now, or a
restart that asked for a build), and lets it go as the game ends:

  • The same file and the same lock as the launcher's players::saves::SaveLock: exclusive (File::try_lock, which the
    launcher's FileLease uses too), opened shared with no one on Windows, made when missing, never truncated; a link or
    a folder in its place refused (save_lock_invalid, said as profile_unwritable).
  • Taken after the update, not across it: a build can take minutes, and holding the lock then would refuse every edit
    for no reason, since no game is running yet. Between two runs of a restart the lock is let go too; no game runs then.
  • Waited for: the launcher lets its own lock go once the builder runs, and an edit holds it a few milliseconds, so play
    tries again every 25 ms for at most five seconds (as the launcher's play_lock_within). Still held after that, the
    game is not started: "Longshot did not start the game: the launcher is changing a save of the profile in ... Wait for
    it to finish, then play again." (saves_busy, an error event with --output json, exit status 121).

Read first: build_core::lock::SaveLock (builder/crates/build-core/src/lock.rs), the lock taken around
host.start in build_driver::play::play (builder/crates/build-driver/src/play.rs), Played::SavesBusy in
longshot-builder/src/play.rs. Docs: docs/dev/reference/build.md ("The saves held while the game runs") and the
codes in docs/dev/reference/build-events.md.

See MagicBeanDev/LongshotLauncher#366.

Testing

Tested: Windows 11 (x86_64-pc-windows-gnullvm through scripts/dev.py cargo). In the game too, on this head
merged with #2957 and #3175 (no conflict), built with longshot_builder.py and run from the launcher of
LongshotLauncher#366:

  • Windows 11, in the game (by hand): started the game from the launcher, opened the launcher's Progress page and
    marked a line done while the game ran: the edit was refused (the launcher shows "Another launcher may be changing
    these saves." with os error 32) and the save is unchanged. The game started and played as before.

  • build_driver::play::tests::the_game_runs_with_the_saves_held_and_waits_for_an_edit_of_them (new): the saves are
    held at each start, a restart's too, and free once play returns; an edit holding them as the game is to start is
    waited for (let go after 200 ms) and the game then starts with them held; an edit that never lets go gives
    Played::SavesBusy and no start. Against main's behaviour (the lock taken out of play, the test left as it is),
    it fails: left: (Exited(0), [false, false]), right: (Exited(0), [true, true]).

  • build_core::lock::tests::the_saves_wait_for_their_holder_and_a_link_is_refused (new): held refuses a second take,
    take_within waits for a holder that lets go, the lock file is never truncated, a folder in its place is refused.
    The symbolic-link case runs only where the OS lets the test make a link.

  • cargo test -p build-core -p build-driver -p longshot-builder --locked --no-fail-fast: build-core 201 passed,
    1 ignored; build-driver lib 225 passed, 1 failed; build-driver tests/codes.rs (every code in build-events.md) 1 passed,
    its other integration tests passed; longshot-builder bin 61 passed, 1 failed; tests/hot_split.rs 3 passed, 3 failed;
    tests/one_copy.rs 2 passed. The 5 failures fail the same way on main on this PC (changes stashed, same command):
    tools::tests::the_repository_s_lock_and_the_table_agree (the compiler's hash in the table), and
    dev::site_hooks::tests::every_form_answers_as_its_hook_runs and the 3 hot_split tests (no clang on this PC,
    LONGSHOT_NO_CLANG unset).

  • cargo fmt --all --check: clean.

  • cargo clippy -p build-core -p build-driver -p longshot-builder --all-targets --locked -- -D warnings -A unused-imports:
    clean. Without -A unused-imports it stops on note_lines unused in build-core/src/sandbox_windows.rs:384, which
    this PR does not touch (the same on main).

  • Linux (CachyOS, x86_64), this head: python -I scripts/dev.py cargo -- test -p build-core -p build-driver -p longshot-builder --locked --no-fail-fast:
    everything passes but 2, which fail the same way on main (d6e819e0) there: tools::tests::the_repository_s_lock_and_the_table_agree
    (the compiler's hash) and one_copy's installed_versions_reuse_their_own_builds_with_one_profile (a JSON written
    pretty, compared compact). The cfg(windows) parts are left out there, the rest builds.

  • Linux, this head: mise run test in full: 878 passed, 8 failed, 13 skipped. 5 fail the same way on main (d6e819e0)
    there: test_check_third_party, test_ci_source_times, test_dev_vcs, test_run_all_output, test_run_all_reap;
    test_run_all_junit timed out in the full run and passes alone, here and on main; test_lifter and
    test_lifter_semantics stopped at 600 s under the load of the full run. mise run lint: passes.

Still to test:

  • Windows, any GPU: after the run above, close the game and make the same edit, expecting it to go through (by hand,
    on a copy of a save).
  • Windows, any GPU: start the game from a shortcut or Steam (not the launcher), same edit, expecting it refused (by hand).
  • Linux: the same two, expecting the same (by hand, or @Beanstalk start a profile, check <profile>/.longshot-save-transfer.lock is locked while the game runs and free after it exits).

Measurements

Nothing to measure: a file lock taken once per start of the game, no change to the game's frames or the build.

Risks

  • A launcher edit while the game runs is now refused with the launcher's own words for a held lock ("Another launcher
    is changing these saves."), not "Close the game first."; the launcher may want to map that error.
  • A launcher or tool that holds the save lock for more than five seconds as the game starts keeps the game from
    starting (exit status 121, said to the player); playing again once it ends works.
  • A profile whose .longshot-save-transfer.lock is a link or a folder no longer plays until it is removed (said as
    profile_unwritable).
  • A revert is enough to undo it. Nothing changes in saves, settings.toml or the caches after updating.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

The launcher can replace a save while the game is running: it edits saves under the profile's save lock, but nothing holds that lock once the game runs, nor for a game started without the launcher. This is the Longshot follow-up llun asked for on MagicBeanDev/LongshotLauncher#366: the builder's `play` holds the save lock while the game runs. ## Summary **What was wrong.** The launcher (MagicBeanDev/LongshotLauncher#366) changes a save (an import, a copy, an edit on its Progress page) under the profile's save lock, `<profile>/.longshot-save-transfer.lock`. It holds that lock itself only from just before it starts the builder until the builder runs, then lets it go. From then on, and for a game started without the launcher (Steam, a shortcut, `longshot-builder play`), nothing held it: an edit could replace a save under a running game, which then wrote its own copy back over the edit or read a file that changed under it. llun's request on that PR: "open the Longshot follow-up, with the builder's `play` holding the save lock while the game runs". **What this changes.** `play` takes the same lock around each run of the game, a restart's too (Restart now, or a restart that asked for a build), and lets it go as the game ends: - The same file and the same lock as the launcher's `players::saves::SaveLock`: exclusive (`File::try_lock`, which the launcher's `FileLease` uses too), opened shared with no one on Windows, made when missing, never truncated; a link or a folder in its place refused (`save_lock_invalid`, said as `profile_unwritable`). - Taken after the update, not across it: a build can take minutes, and holding the lock then would refuse every edit for no reason, since no game is running yet. Between two runs of a restart the lock is let go too; no game runs then. - Waited for: the launcher lets its own lock go once the builder runs, and an edit holds it a few milliseconds, so play tries again every 25 ms for at most five seconds (as the launcher's `play_lock_within`). Still held after that, the game is not started: "Longshot did not start the game: the launcher is changing a save of the profile in ... Wait for it to finish, then play again." (`saves_busy`, an `error` event with `--output json`, exit status 121). **Read first:** `build_core::lock::SaveLock` (`builder/crates/build-core/src/lock.rs`), the lock taken around `host.start` in `build_driver::play::play` (`builder/crates/build-driver/src/play.rs`), `Played::SavesBusy` in `longshot-builder/src/play.rs`. Docs: `docs/dev/reference/build.md` ("The saves held while the game runs") and the codes in `docs/dev/reference/build-events.md`. See MagicBeanDev/LongshotLauncher#366. ## Testing **Tested:** Windows 11 (x86_64-pc-windows-gnullvm through `scripts/dev.py cargo`). In the game too, on this head merged with #2957 and #3175 (no conflict), built with `longshot_builder.py` and run from the launcher of LongshotLauncher#366: - Windows 11, in the game (by hand): started the game from the launcher, opened the launcher's Progress page and marked a line done while the game ran: the edit was refused (the launcher shows "Another launcher may be changing these saves." with os error 32) and the save is unchanged. The game started and played as before. - `build_driver::play::tests::the_game_runs_with_the_saves_held_and_waits_for_an_edit_of_them` (new): the saves are held at each start, a restart's too, and free once `play` returns; an edit holding them as the game is to start is waited for (let go after 200 ms) and the game then starts with them held; an edit that never lets go gives `Played::SavesBusy` and no start. Against `main`'s behaviour (the lock taken out of `play`, the test left as it is), it fails: `left: (Exited(0), [false, false])`, `right: (Exited(0), [true, true])`. - `build_core::lock::tests::the_saves_wait_for_their_holder_and_a_link_is_refused` (new): held refuses a second take, `take_within` waits for a holder that lets go, the lock file is never truncated, a folder in its place is refused. The symbolic-link case runs only where the OS lets the test make a link. - `cargo test -p build-core -p build-driver -p longshot-builder --locked --no-fail-fast`: build-core 201 passed, 1 ignored; build-driver lib 225 passed, 1 failed; build-driver `tests/codes.rs` (every code in build-events.md) 1 passed, its other integration tests passed; longshot-builder bin 61 passed, 1 failed; `tests/hot_split.rs` 3 passed, 3 failed; `tests/one_copy.rs` 2 passed. The 5 failures fail the same way on `main` on this PC (changes stashed, same command): `tools::tests::the_repository_s_lock_and_the_table_agree` (the compiler's hash in the table), and `dev::site_hooks::tests::every_form_answers_as_its_hook_runs` and the 3 `hot_split` tests (no clang on this PC, `LONGSHOT_NO_CLANG` unset). - `cargo fmt --all --check`: clean. - `cargo clippy -p build-core -p build-driver -p longshot-builder --all-targets --locked -- -D warnings -A unused-imports`: clean. Without `-A unused-imports` it stops on `note_lines` unused in `build-core/src/sandbox_windows.rs:384`, which this PR does not touch (the same on `main`). - Linux (CachyOS, x86_64), this head: `python -I scripts/dev.py cargo -- test -p build-core -p build-driver -p longshot-builder --locked --no-fail-fast`: everything passes but 2, which fail the same way on `main` (d6e819e0) there: `tools::tests::the_repository_s_lock_and_the_table_agree` (the compiler's hash) and `one_copy`'s `installed_versions_reuse_their_own_builds_with_one_profile` (a JSON written pretty, compared compact). The `cfg(windows)` parts are left out there, the rest builds. - Linux, this head: `mise run test` in full: 878 passed, 8 failed, 13 skipped. 5 fail the same way on `main` (d6e819e0) there: `test_check_third_party`, `test_ci_source_times`, `test_dev_vcs`, `test_run_all_output`, `test_run_all_reap`; `test_run_all_junit` timed out in the full run and passes alone, here and on `main`; `test_lifter` and `test_lifter_semantics` stopped at 600 s under the load of the full run. `mise run lint`: passes. **Still to test:** - Windows, any GPU: after the run above, close the game and make the same edit, expecting it to go through (by hand, on a copy of a save). - Windows, any GPU: start the game from a shortcut or Steam (not the launcher), same edit, expecting it refused (by hand). - Linux: the same two, expecting the same (by hand, or `@Beanstalk start a profile, check <profile>/.longshot-save-transfer.lock is locked while the game runs and free after it exits`). ## Measurements Nothing to measure: a file lock taken once per start of the game, no change to the game's frames or the build. ## Risks - A launcher edit while the game runs is now refused with the launcher's own words for a held lock ("Another launcher is changing these saves."), not "Close the game first."; the launcher may want to map that error. - A launcher or tool that holds the save lock for more than five seconds as the game starts keeps the game from starting (exit status 121, said to the player); playing again once it ends works. - A profile whose `.longshot-save-transfer.lock` is a link or a folder no longer plays until it is removed (said as `profile_unwritable`). - A revert is enough to undo it. Nothing changes in saves, `settings.toml` or the caches after updating. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(builder): play holds the launcher's save lock while the game runs
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
0ec21fe6e7
The launcher changes a save (an import, a copy, an edit on its Progress
page) under the profile's save lock, <profile>/.longshot-save-transfer.lock,
and holds that lock itself only from just before it starts the builder
until the builder runs (MagicBeanDev/LongshotLauncher#366). Nothing held
it once the game was running, nor for a game started without the
launcher: an edit could replace a save under a running game, which then
wrote its own copy back over it or read a file that changed under it.

Play now takes the same lock (the same file, exclusive, shared with no
one on Windows, made when missing and never truncated, a link or a
folder there refused) around each run of the game, a restart's too, and
lets it go as the game ends. It is taken after the update, not across
it, so an edit can still run while the game is built. Since the launcher
lets its own lock go only once the builder runs, play tries again every
25 ms for at most five seconds; still held after that, the game is not
started and the player is told the launcher is changing a save
(saves_busy, exit status 121).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: not yet: the builder's tests cover the lock around each start (a test that fails without the change); a run through the launcher with an edit attempted while the game is open comes next.

Tested in game: not yet: the builder's tests cover the lock around each start (a test that fails without the change); a run through the launcher with an edit attempted while the game is open comes next.
Member

Possibly related, for context:

  • PR #2957 feat(progress): a Progress window, a corner panel and marks in the world, and the save's progress for the launcher — Progress PR uses a running-game save lock; overlapping behavior
Possibly related, for context: - PR #2957 feat(progress): a Progress window, a corner panel and marks in the world, and the save's progress for the launcher — Progress PR uses a running-game save lock; overlapping behavior
neotoxic changed title from WIP: fix(builder): play holds the launcher's save lock while the game runs to fix(builder): play holds the launcher's save lock while the game runs 2026-12-04 13:35:34 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge main (e345b3cab) into fix/play-holds-save-lock
Some checks are pending
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
985387af9f
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (e345b3ca) by a merge, nothing rewritten. Windows, run_all.py --changed origin/main: 8 passed, 0 failed.

Brought up to current `main` (e345b3ca) by a merge, nothing rewritten. Windows, `run_all.py --changed origin/main`: 8 passed, 0 failed.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The game-free tests and Windows game run support the fix, but the launcher interaction still needs an end-to-end Linux run and the remaining Windows release and direct-start checks. Recommend approval; not approved on the forge.

The builder holds the launcher's profile save lock during each game run, preventing concurrent launcher edits. It adds a wait of up to five seconds at startup when the lock is busy.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1 builder/crates/build-driver/src/play.rs:1012: The Linux launcher-to-builder lock interaction has not been exercised with a running game. (more on the line) Do: Run the described Linux game and launcher checks, including a direct start and an edit after exit, and report the results.
  • L2 builder/crates/build-driver/src/play.rs:1012: The Windows game run has not yet checked a direct start or an edit after the game exits. (more on the line) Do: Complete the two Windows checks listed in Still to test and report the results.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes: the reported game-free test fails without the lock and passes with it, and a Windows game run refused an edit while preserving the save. Linux end-to-end behavior and the remaining Windows cases have not yet been reported.

Other systems: The lock affects game startup and save transfers on Windows and Linux, including Steam and shortcut starts and restarts. The reported tests exercise restarts and lock release; a Windows launcher run exercised a held lock. Linux launcher interaction and the remaining direct-start and post-exit cases need runs.

Switches: None.

Reviewed: 985387af9f against e345b3cab4: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the relevant standards, the diff, commits, changed lock and play paths, save migration and process-wait code. Skimmed the unchanged portions of the large play files and the changed reference documentation. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • The lock is held across the synchronous game start and wait, and is dropped on normal return and start failure.
  • Restarts reacquire the lock, and the game-free test checks that removing the lock changes its result.
  • The changed commits record AI assistance; no game-derived files, generated outputs, renderer API changes or switches are present in the diff.

Testing: No commands from the pull request or tests were run during review. The author reports passing relevant game-free tests on Windows and Linux apart from named base failures, and one Windows in-game launcher edit check. CI is still running.

Overlaps and merge order: The change coordinates with LongshotLauncher#366; its merge status and ordering are not available in the supplied context.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The game-free tests and Windows game run support the fix, but the launcher interaction still needs an end-to-end Linux run and the remaining Windows release and direct-start checks. Recommend approval; not approved on the forge. The builder holds the launcher's profile save lock during each game run, preventing concurrent launcher edits. It adds a wait of up to five seconds at startup when the lock is busy. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `builder/crates/build-driver/src/play.rs:1012`: The Linux launcher-to-builder lock interaction has not been exercised with a running game. (more on the line) **Do:** Run the described Linux game and launcher checks, including a direct start and an edit after exit, and report the results. - **L2** `builder/crates/build-driver/src/play.rs:1012`: The Windows game run has not yet checked a direct start or an edit after the game exits. (more on the line) **Do:** Complete the two Windows checks listed in Still to test and report the results. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the reported game-free test fails without the lock and passes with it, and a Windows game run refused an edit while preserving the save. Linux end-to-end behavior and the remaining Windows cases have not yet been reported. **Other systems:** The lock affects game startup and save transfers on Windows and Linux, including Steam and shortcut starts and restarts. The reported tests exercise restarts and lock release; a Windows launcher run exercised a held lock. Linux launcher interaction and the remaining direct-start and post-exit cases need runs. **Switches:** None. **Reviewed:** 985387af9f4a against e345b3cab4ee: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the relevant standards, the diff, commits, changed lock and play paths, save migration and process-wait code. Skimmed the unchanged portions of the large play files and the changed reference documentation. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - The lock is held across the synchronous game start and wait, and is dropped on normal return and start failure. - Restarts reacquire the lock, and the game-free test checks that removing the lock changes its result. - The changed commits record AI assistance; no game-derived files, generated outputs, renderer API changes or switches are present in the diff. **Testing:** No commands from the pull request or tests were run during review. The author reports passing relevant game-free tests on Windows and Linux apart from named base failures, and one Windows in-game launcher edit check. CI is still running. **Overlaps and merge order:** The change coordinates with LongshotLauncher#366; its merge status and ordering are not available in the supplied context. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -995,0 +1009,4 @@
// (the saves held while the game runs, the launcher's save lock: no save transfer of the launcher replaces a
// save under it, even a game started without the launcher. Taken after the update, not across it, so a build
// keeps no edit out; waited for, as the launcher lets its own go once this builder runs)
let held = match SaveLock::take_within(&profile, build_core::lock::SAVE_WAIT) {
Member

L1 (should fix): The Linux launcher-to-builder lock interaction has not been exercised with a running game.

When: On Linux, a launcher edit and a game started through the launcher or a shortcut must contend on the same profile lock, and edits must work again after the game exits.

Do: Run the described Linux game and launcher checks, including a direct start and an edit after exit, and report the results.

**L1** (should fix): The Linux launcher-to-builder lock interaction has not been exercised with a running game. *When:* On Linux, a launcher edit and a game started through the launcher or a shortcut must contend on the same profile lock, and edits must work again after the game exits. **Do:** Run the described Linux game and launcher checks, including a direct start and an edit after exit, and report the results.
Member

L2 (should fix): The Windows game run has not yet checked a direct start or an edit after the game exits.

When: A shortcut or Steam start must prevent an edit while the game runs, and a subsequent edit must succeed once its lock is released.

Do: Complete the two Windows checks listed in Still to test and report the results.

**L2** (should fix): The Windows game run has not yet checked a direct start or an edit after the game exits. *When:* A shortcut or Steam start must prevent an edit while the game runs, and a subsequent edit must succeed once its lock is released. **Do:** Complete the two Windows checks listed in Still to test and report the results.
HumanBean deleted branch fix/play-holds-save-lock 2026-12-04 17:58:06 +00:00
Some checks are pending
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 6s
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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/Longshot!3174
No description provided.