fix(host): Restart now starts the game again on Windows when longshot-builder started it #2884

Merged
HumanBean merged 2 commits from llun/Longshot:fix/restart-now-through-builder into main 2026-11-30 18:14:45 +00:00
Member

Summary

On Windows, the Insert menu's Restart now (after changing a setting that needs a restart) closes the game and nothing
comes back, for any game longshot-builder play started: the Launcher's Play, a desktop shortcut, a Steam tile. A
player reported it on nightly 951; it has been so since the hand-over arrived with #2286 (nightly 806). Linux and the
Deck are not affected.

On main: play a nightly from the Launcher on Windows, change Output resolution (or any row that needs a restart),
close the menu and choose Restart now. The window closes and the game never starts again; its log ends with display: window closed for a restart, and no new run's log follows.

Why: the game restarts itself (host/hos_relaunch.c): a new process, the same command line, the environment it was
started with. But bc_claim takes LONGSHOT_BUILDER_CHANNEL out of the environment at the start, before
hos_relaunch_keep_env keeps it, so the copy has no channel. A game in a version folder's builds/<build>/ with no
channel hands over to the builder two folders up (host/longshot_exit.h): the copy starts Longshot.exe play and exits
at once, and that builder stops at the profile the first builder still holds (single.rs; the first is still in its
after-game work for about 9 s). A process trace of nightly 951 started as the Launcher's window starts it: the new
game started Longshot.exe 17 ms after its own start and ended; that Longshot.exe ended 48 ms later; the first
builder exited 0; nothing was left running.

This PR: a Windows game the builder started (it has the builder's channel: bc_given, new in
host/builder_channel.c) starts nothing at Restart now. It exits with 75 (HOS_RESTART_EXIT,
host/hos_relaunch.h), and the builder that started it, which is waiting for it with the profile held, starts it again
with the same arguments (build_driver::play::GAME_RESTART_STATUS), building first only when the game had also asked
for a build (restart_to_apply). The Launcher, the profile lock and the crash watch keep the new game, as they do after
restart_to_apply. A game no builder started (a developer's folder, a test's) and every game on Linux (execve, the
same process) restart as before. The control bridge's relaunch takes the same path.

Read first: relaunch() and hos_window_closed_exit in host/hos_relaunch.c, then the loop in
builder/crates/build-driver/src/play.rs's play.

Prior work: none found for this (open and closed pull requests and issues on Longshot and the Launcher: "restart now",
"relaunch", "hand-over"). #2741 changed the restart's standard handles and log; its launcher run was still to test.
#2807 (open) touches the same exit path for DLSS 5.

Testing

Tested: Windows 11 (26300), RTX 5080, NVIDIA 621.40.

  • In the game, through the job queue: this branch as a pack over main 9b342b46's base, in a version folder laid out as
    the Launcher's (Longshot.exe, this branch's builder, beside builds/default/), started as the Launcher's window
    starts it (Longshot.exe play --profile <p> --output json), Restart now through the control bridge's relaunch (the
    same hos_window_closed_exit as the menu's button), then quit. The game logged restart: the builder that started the game starts it again (exit status 75); the same builder started the game again 20 ms after the first ended
    (play_plan, game_starting, game_started again on its stream), the bridge answered again after 1.1 s, the new
    game presented 300 frames, quit ended it and the builder exited 0. No other Longshot.exe was started.
  • The same with --output user, as a desktop shortcut and a Steam tile start the builder (the Steam tile starts the
    Launcher with --play, which runs it so): the same builder started the game again 26 ms after the first ended, the
    bridge answered again after 1.8 s, no other Longshot.exe started (so no "already running" box), quit ended it.
  • The real Longshot Launcher (nightly-247-29c6603a), with this branch's builder and game added to it as a version (and
    a test profile playing it), through the job queue, Restart now from the game's own menu (F1, Output resolution
    changed, the menu closed, Restart Now at "Restart to apply Output resolution?"):
    • The Launcher's window, Play Longshot: the game logged menu: restart now, to apply Output resolution and
      restart: the builder that started the game starts it again (exit status 75); the same builder (same process)
      under the same Launcher started a new game at once, which opened at the new Output resolution. The Launcher's
      stream showed game_starting, game_started and game_ready again in the same session, and its Home page was
      back on Ready to play once the game was closed.
    • A shortcut's start, LongshotLauncher.exe --play <version> --profile <folder> (what the Launcher's desktop
      shortcuts and Steam tiles run): the same, the new game at the new Output resolution (saved in the profile's
      settings.ini), no other Longshot.exe and no "already running" box; the Launcher exited 0 after the game was
      closed.
    • (The test version's builder is a developer's build, which carries no sources: its fast check asked for an update it
      cannot make, and it played the game it had, as play_anyway does. Both starts ran this branch's builder and game.)
  • The same steps on nightly 951 (main 28cb22b9) as the Launcher installed it: the hand-over above, nothing came back.
  • tests/test_restart_by_builder.py (new: the Windows restart and the window's close cut from host/hos_relaunch.c,
    compiled with stand-ins for the Win32 calls; a game the builder started starts nothing and exits with the builder's
    status, any other restarts itself and exits 0, a plain close starts nothing): fails on main ("started by a builder,
    Restart now started 1 program(s) and exited 0"), passes here with gcc and clang, on Windows and Linux; with the fix's
    bc_given() test undone it fails again.
  • build-driver's new unit test a_game_that_restarts_itself_through_the_builder_is_started_again_without_a_build:
    fails on main (Exited(75), 1 start instead of 5 starts, no build), passes here with the other 18 play:: tests. The in-game run's game and builder were built from this branch's code before its last commit, which changes only comments, docs and checks.
    cargo fmt --check passes.
  • pre-commit on every changed file passes (tests/test_crash_record.py's 43 one-line a; b statements, which ruff's
    E702 flags in a changed file, are on lines of their own here; its syntax tree is unchanged). The new check takes the
    runner's {cc} and a compiler command with arguments (--cc "gcc -O1", CC=clang).
  • CI's Third-party parts and guide screenshots fails on main 28cb22b9 too: check_guide_screenshots.py --review-sources asks for a review of device_policy.h, vk_internal.h and vk_texture.h, which main changed
    (#2871 records it); its other steps pass here.
  • The checks that read the changed files: test_menu_restart, test_close_waits_for_save, test_longshot_exit,
    test_hos_ab, test_input_movie pass on Windows; test_menu_restart, test_builder_channel, test_log_open_failure,
    test_restart_log, test_longshot_exit, test_close_waits_for_save pass on Linux (WSL Ubuntu 24.04).
    host/hos_relaunch.c and host/builder_channel.c built for Windows in the pack (llvm-mingw); on Linux,
    test_restart_log compiles the Linux restart cut from it and test_builder_channel compiles builder_channel.c.
    test_crash_record fails on main and here at the same line (posix/display_sdl.c's third ExitProcess(1), an
    inventory main has not caught up with); run with that one line lifted, its exit inventory matches this PR's
    hos_relaunch.c entry. test_builder_channel and test_log_open_failure fail on Windows on main and here alike.
  • cargo clippy -p build-driver -p longshot-builder --no-deps on Windows stops at main's folder.rs:737 (a needless
    borrow in Windows-only code, untouched here); nothing in this diff. CI's clippy runs on Linux.
  • mise run test on Windows (12 at once): 811 passed, 57 failed here; 812 passed, 55 failed on main 28cb22b9 the same way. The failures match but for three here, test_quit_not_crash and test_windows_stop (they read the window's close: updated here, both pass now on Windows and Linux) and test_present_semaphores (passes alone: load), and one on main only, test_oot_wide_save_picture. The rest fail on main alike: stale source cuts, Windows paths and POSIX calls.

Still to test:

  • Windows, a Steam tile started from Steam itself (Steam's own job around the Launcher): Restart now, expecting the game
    back as from the shortcut's command above (by hand).
  • Linux or the Deck: Restart now, expecting it to restart as before (execve, unchanged here) (@Beanstalk Restart now
    after changing Output resolution, from the Launcher, on Linux).

Measurements

Verdict: fixed: Restart now brings the game back when the builder started it (it did not on main). No performance effect to measure.

Nothing to measure for speed: no frame, load or memory cost; the restart is a process start either way. The
evidence is the test and the run above (HOS_RESTART_EXIT is an exit status, not a switch):

Before: main @ 28cb22b9 (nightly 951) After: this PR @ f73cf723d
tests/test_restart_by_builder.py fails: 1 program started, exit 0 passes: nothing started, exit 75
Restart now, started as the Launcher starts it game gone, Longshot.exe started and ended at once game back in 0.4 s, same builder

Risks

  • A Windows game started by a builder that predates this PR would exit with 75 and not be started again. That pairing
    does not happen: the builder in a version folder built the game beside it, and a new builder rebuilds the folder
    (another builder) before it plays.
  • A game started by the builder now ends at Restart now and comes back as a new run under the same builder: the
    Launcher sees game_starting and game_started again, as after restart_to_apply.
  • Nothing changes for players' files. A revert is enough.

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.
  • A check under tests/ that reads changed source is updated, not weakened.
  • 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

## Summary On Windows, the Insert menu's **Restart now** (after changing a setting that needs a restart) closes the game and nothing comes back, for any game `longshot-builder play` started: the Launcher's Play, a desktop shortcut, a Steam tile. A player reported it on nightly 951; it has been so since the hand-over arrived with #2286 (nightly 806). Linux and the Deck are not affected. **On main:** play a nightly from the Launcher on Windows, change Output resolution (or any row that needs a restart), close the menu and choose Restart now. The window closes and the game never starts again; its log ends with `display: window closed for a restart`, and no new run's log follows. **Why:** the game restarts itself (`host/hos_relaunch.c`): a new process, the same command line, the environment it was started with. But `bc_claim` takes `LONGSHOT_BUILDER_CHANNEL` out of the environment at the start, before `hos_relaunch_keep_env` keeps it, so the copy has no channel. A game in a version folder's `builds/<build>/` with no channel hands over to the builder two folders up (`host/longshot_exit.h`): the copy starts `Longshot.exe play` and exits at once, and that builder stops at the profile the first builder still holds (`single.rs`; the first is still in its after-game work for about 9 s). A process trace of nightly 951 started as the Launcher's window starts it: the new game started `Longshot.exe` 17 ms after its own start and ended; that `Longshot.exe` ended 48 ms later; the first builder exited 0; nothing was left running. **This PR:** a Windows game the builder started (it has the builder's channel: `bc_given`, new in `host/builder_channel.c`) starts nothing at Restart now. It exits with **75** (`HOS_RESTART_EXIT`, `host/hos_relaunch.h`), and the builder that started it, which is waiting for it with the profile held, starts it again with the same arguments (`build_driver::play::GAME_RESTART_STATUS`), building first only when the game had also asked for a build (`restart_to_apply`). The Launcher, the profile lock and the crash watch keep the new game, as they do after `restart_to_apply`. A game no builder started (a developer's folder, a test's) and every game on Linux (`execve`, the same process) restart as before. The control bridge's `relaunch` takes the same path. Read first: `relaunch()` and `hos_window_closed_exit` in `host/hos_relaunch.c`, then the loop in `builder/crates/build-driver/src/play.rs`'s `play`. Prior work: none found for this (open and closed pull requests and issues on Longshot and the Launcher: "restart now", "relaunch", "hand-over"). #2741 changed the restart's standard handles and log; its launcher run was still to test. #2807 (open) touches the same exit path for DLSS 5. ## Testing **Tested:** Windows 11 (26300), RTX 5080, NVIDIA 621.40. - In the game, through the job queue: this branch as a pack over main 9b342b46's base, in a version folder laid out as the Launcher's (`Longshot.exe`, this branch's builder, beside `builds/default/`), started as the Launcher's window starts it (`Longshot.exe play --profile <p> --output json`), Restart now through the control bridge's `relaunch` (the same `hos_window_closed_exit` as the menu's button), then `quit`. The game logged `restart: the builder that started the game starts it again (exit status 75)`; the same builder started the game again 20 ms after the first ended (`play_plan`, `game_starting`, `game_started` again on its stream), the bridge answered again after 1.1 s, the new game presented 300 frames, `quit` ended it and the builder exited 0. No other `Longshot.exe` was started. - The same with `--output user`, as a desktop shortcut and a Steam tile start the builder (the Steam tile starts the Launcher with `--play`, which runs it so): the same builder started the game again 26 ms after the first ended, the bridge answered again after 1.8 s, no other `Longshot.exe` started (so no "already running" box), `quit` ended it. - The real Longshot Launcher (nightly-247-29c6603a), with this branch's builder and game added to it as a version (and a test profile playing it), through the job queue, Restart now from the game's own menu (F1, Output resolution changed, the menu closed, Restart Now at "Restart to apply Output resolution?"): - **The Launcher's window, Play Longshot:** the game logged `menu: restart now, to apply Output resolution` and `restart: the builder that started the game starts it again (exit status 75)`; the same builder (same process) under the same Launcher started a new game at once, which opened at the new Output resolution. The Launcher's stream showed `game_starting`, `game_started` and `game_ready` again in the same session, and its Home page was back on Ready to play once the game was closed. - **A shortcut's start, `LongshotLauncher.exe --play <version> --profile <folder>`** (what the Launcher's desktop shortcuts and Steam tiles run): the same, the new game at the new Output resolution (saved in the profile's `settings.ini`), no other `Longshot.exe` and no "already running" box; the Launcher exited 0 after the game was closed. - (The test version's builder is a developer's build, which carries no sources: its fast check asked for an update it cannot make, and it played the game it had, as `play_anyway` does. Both starts ran this branch's builder and game.) - The same steps on nightly 951 (main 28cb22b9) as the Launcher installed it: the hand-over above, nothing came back. - `tests/test_restart_by_builder.py` (new: the Windows restart and the window's close cut from `host/hos_relaunch.c`, compiled with stand-ins for the Win32 calls; a game the builder started starts nothing and exits with the builder's status, any other restarts itself and exits 0, a plain close starts nothing): fails on main ("started by a builder, Restart now started 1 program(s) and exited 0"), passes here with gcc and clang, on Windows and Linux; with the fix's `bc_given()` test undone it fails again. - `build-driver`'s new unit test `a_game_that_restarts_itself_through_the_builder_is_started_again_without_a_build`: fails on main (`Exited(75), 1 start` instead of 5 starts, no build), passes here with the other 18 `play::` tests. The in-game run's game and builder were built from this branch's code before its last commit, which changes only comments, docs and checks. `cargo fmt --check` passes. - `pre-commit` on every changed file passes (`tests/test_crash_record.py`'s 43 one-line `a; b` statements, which ruff's E702 flags in a changed file, are on lines of their own here; its syntax tree is unchanged). The new check takes the runner's `{cc}` and a compiler command with arguments (`--cc "gcc -O1"`, `CC=clang`). - CI's *Third-party parts and guide screenshots* fails on main 28cb22b9 too: `check_guide_screenshots.py --review-sources` asks for a review of `device_policy.h`, `vk_internal.h` and `vk_texture.h`, which main changed (#2871 records it); its other steps pass here. - The checks that read the changed files: `test_menu_restart`, `test_close_waits_for_save`, `test_longshot_exit`, `test_hos_ab`, `test_input_movie` pass on Windows; `test_menu_restart`, `test_builder_channel`, `test_log_open_failure`, `test_restart_log`, `test_longshot_exit`, `test_close_waits_for_save` pass on Linux (WSL Ubuntu 24.04). `host/hos_relaunch.c` and `host/builder_channel.c` built for Windows in the pack (llvm-mingw); on Linux, `test_restart_log` compiles the Linux restart cut from it and `test_builder_channel` compiles `builder_channel.c`. `test_crash_record` fails on main and here at the same line (`posix/display_sdl.c`'s third `ExitProcess(1)`, an inventory main has not caught up with); run with that one line lifted, its exit inventory matches this PR's `hos_relaunch.c` entry. `test_builder_channel` and `test_log_open_failure` fail on Windows on main and here alike. - `cargo clippy -p build-driver -p longshot-builder --no-deps` on Windows stops at main's `folder.rs:737` (a needless borrow in Windows-only code, untouched here); nothing in this diff. CI's clippy runs on Linux. - `mise run test` on Windows (12 at once): 811 passed, 57 failed here; 812 passed, 55 failed on main 28cb22b9 the same way. The failures match but for three here, `test_quit_not_crash` and `test_windows_stop` (they read the window's close: updated here, both pass now on Windows and Linux) and `test_present_semaphores` (passes alone: load), and one on main only, `test_oot_wide_save_picture`. The rest fail on main alike: stale source cuts, Windows paths and POSIX calls. **Still to test:** - Windows, a Steam tile started from Steam itself (Steam's own job around the Launcher): Restart now, expecting the game back as from the shortcut's command above (by hand). - Linux or the Deck: Restart now, expecting it to restart as before (`execve`, unchanged here) (@Beanstalk Restart now after changing Output resolution, from the Launcher, on Linux). ## Measurements **Verdict:** fixed: Restart now brings the game back when the builder started it (it did not on main). No performance effect to measure. Nothing to measure for speed: no frame, load or memory cost; the restart is a process start either way. The evidence is the test and the run above (`HOS_RESTART_EXIT` is an exit status, not a switch): | | Before: main @ 28cb22b9 (nightly 951) | After: this PR @ f73cf723d | |---|---|---| | `tests/test_restart_by_builder.py` | fails: 1 program started, exit 0 | passes: nothing started, exit 75 | | Restart now, started as the Launcher starts it | game gone, `Longshot.exe` started and ended at once | game back in 0.4 s, same builder | ## Risks - A Windows game started by a builder that predates this PR would exit with 75 and not be started again. That pairing does not happen: the builder in a version folder built the game beside it, and a new builder rebuilds the folder (`another builder`) before it plays. - A game started by the builder now ends at Restart now and comes back as a new run under the same builder: the Launcher sees `game_starting` and `game_started` again, as after `restart_to_apply`. - Nothing changes for players' files. A revert is enough. ## 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] A check under `tests/` that reads changed source is updated, not weakened. - [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)
A game started by longshot-builder play (the Launcher's Play, a shortcut, Steam) restarts itself with a copy that has no
builder channel: it hands over to the builder two folders up, which stops at the profile the first builder still holds,
so the game closes and nothing comes back. tests/test_restart_by_builder.py cuts the Windows restart out of
host/hos_relaunch.c and checks that such a game starts nothing and exits with the builder's restart status; the
build-driver unit test checks that play starts the game again for that status, with no build. Both fail on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(host): Restart now starts the game again on Windows when longshot-builder started it
Some checks failed
CI / What the change needs (pull_request) Successful in 10s
CI / Third-party parts and guide screenshots (pull_request) Failing after 14s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 15s
PR description / Title and description (pull_request_target) Successful in 5s
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
b6f4abb889
The Insert menu's Restart now (and the control bridge's relaunch) closed the game and nothing came back, on Windows,
for a game started by longshot-builder play: the Launcher's Play, a shortcut, Steam (nightly 806 and later). The game
started a copy of itself, but bc_claim had taken LONGSHOT_BUILDER_CHANNEL out of its environment before the restart's
copy was kept, so the copy had no channel and handed over to the builder two folders up (host/longshot_exit.h). That
builder found the profile still held by the first one, which was still in its after-game work, and stopped.

Now such a game starts nothing itself: it exits with HOS_RESTART_EXIT (75, host/hos_relaunch.h), and the builder that
started it, which waits for it with the profile held, starts it again with the same arguments
(build_driver::play::GAME_RESTART_STATUS), built only when the game had also asked for a build. The Launcher, the
profile lock and the crash watch keep the new game. A game no builder started (a developer's folder, a test's) and
every game on Linux (execve, the same process) start themselves again as before.

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

Tested in game: Windows 11 (26300), RTX 5080, NVIDIA 621.40: this branch as a pack over main 9b342b46's base, in a version folder laid out as the Launcher's (this branch's builder as Longshot.exe beside builds/default), started as the Launcher's window starts it (play --output json), at the title intro. Restart now through the control bridge's relaunch (the menu button's path): the game logged 'restart: the builder that started the game starts it again (exit status 75)', the same builder started it again 20 ms later, the bridge answered again after 1.1 s, the new game presented 300 frames, quit ended it and the builder exited 0. On nightly 951 (main 28cb22b9) the same steps left nothing running.

Tested in game: Windows 11 (26300), RTX 5080, NVIDIA 621.40: this branch as a pack over main 9b342b46's base, in a version folder laid out as the Launcher's (this branch's builder as Longshot.exe beside builds/default), started as the Launcher's window starts it (play --output json), at the title intro. Restart now through the control bridge's relaunch (the menu button's path): the game logged 'restart: the builder that started the game starts it again (exit status 75)', the same builder started it again 20 ms later, the bridge answered again after 1.1 s, the new game presented 300 frames, quit ended it and the builder exited 0. On nightly 951 (main 28cb22b9) the same steps left nothing running.
llun changed title from WIP: fix(host): Restart now starts the game again on Windows when longshot-builder started it to fix(host): Restart now starts the game again on Windows when longshot-builder started it 2026-11-30 07:16:16 +00:00
Author
Member
@review
BeanBot requested changes 2026-11-30 07:18:32 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The reported Windows restart failure is fixed in the tested builder-driven run, but the Launcher, shortcut and Steam paths still need the runs listed by the author. (It stands on L3: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 14s.)

The game asks its waiting builder to restart it on Windows, keeping the profile and builder session. This avoids the second builder colliding with the held profile; it adds an exit-status contract between the game and builder.

Blocking (2): must change before merging.

  1. L3: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 14s.
  2. L4: The check CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) fails on this head and passes on the base branch: Failing after 15s.

Should fix (1): not blocking, but worth doing before merging.

  • L1 tests/test_restart_by_builder.py:25: The new check hard-codes gcc instead of using the compiler selected by the test runner. (more on the line) Do: Pass the runner's {cc} selection and accept its compiler command, including any arguments, in the test.

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

  • L2 host/hos_relaunch.c:68: The actual Windows entry points still need the integration runs listed in the PR. (more on the line) Do: Run Restart now through the Windows Launcher, a Steam tile and a desktop shortcut, and check that the game returns in the same session without an already-running message.

@fix can do L1, L3 and L4.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • Should restart capability be negotiated with the builder so a newer game played by an older builder after a failed rebuild can still restart?

Checks: Still running: 7 checks.

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

Does it help: Yes for the tested path: nightly 951 did not restart, while the branch restarted under the same builder, which started the new process 20 ms after the first ended. The actual Launcher, Steam and shortcut flows remain untested.

Other systems: The builder's play loop changes on both Windows and Linux. Linux's execve restart is unchanged, but an in-game Linux or Deck run remains outstanding. Crash handling sees the new exit status after the game has performed clean-close work. An older builder can still play a newer game if its attempted rebuild fails, so that compatibility case deserves attention.

Switches: None added, changed or removed.

Reviewed: b6f4abb889 against 28cb22b9ed: Read the repository rules, PR template, standards, commit messages and complete diff. Read the changed host channel and relaunch code and the play loop, and traced startup, channel creation, crash handling and test runner compiler selection. Skimmed the remaining portions of the large play and test files; the review checklist file was absent. No translations, recorded runs or generated files changed.; nothing run (a code review).

Checked and fine:

  • The Windows game-free test exercises both builder and standalone restart branches and compares the host and builder status values.
  • Both commits record AI assistance.
  • No game-derived files, generated shader files, third-party changes or renderer API changes appear in the diff.
  • The clean-close work runs before the new restart exit status is returned.

Testing: Read-only review; no commands from the project, builds or tests were run. The author reports a successful Windows in-game run and game-free checks. CI has two head-only failures already recorded by the bot and several checks still running.

Overlaps and merge order: The PR reports that open #2807 touches the same exit path; merge order was not established.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The reported Windows restart failure is fixed in the tested builder-driven run, but the Launcher, shortcut and Steam paths still need the runs listed by the author. (It stands on L3: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 14s.) The game asks its waiting builder to restart it on Windows, keeping the profile and builder session. This avoids the second builder colliding with the held profile; it adds an exit-status contract between the game and builder. **Blocking (2)**: must change before merging. 1. **L3**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 14s. 2. **L4**: The check `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)` fails on this head and passes on the base branch: Failing after 15s. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `tests/test_restart_by_builder.py:25`: The new check hard-codes gcc instead of using the compiler selected by the test runner. (more on the line) **Do:** Pass the runner's {cc} selection and accept its compiler command, including any arguments, in the test. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `host/hos_relaunch.c:68`: The actual Windows entry points still need the integration runs listed in the PR. (more on the line) **Do:** Run Restart now through the Windows Launcher, a Steam tile and a desktop shortcut, and check that the game returns in the same session without an already-running message. `@fix` can do L1, L3 and L4. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - Should restart capability be negotiated with the builder so a newer game played by an older builder after a failed rebuild can still restart? **Checks:** Still running: 7 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the tested path: nightly 951 did not restart, while the branch restarted under the same builder, which started the new process 20 ms after the first ended. The actual Launcher, Steam and shortcut flows remain untested. **Other systems:** The builder's play loop changes on both Windows and Linux. Linux's execve restart is unchanged, but an in-game Linux or Deck run remains outstanding. Crash handling sees the new exit status after the game has performed clean-close work. An older builder can still play a newer game if its attempted rebuild fails, so that compatibility case deserves attention. **Switches:** None added, changed or removed. **Reviewed:** b6f4abb889d6 against 28cb22b9ed23: Read the repository rules, PR template, standards, commit messages and complete diff. Read the changed host channel and relaunch code and the play loop, and traced startup, channel creation, crash handling and test runner compiler selection. Skimmed the remaining portions of the large play and test files; the review checklist file was absent. No translations, recorded runs or generated files changed.; nothing run (a code review). **Checked and fine:** - The Windows game-free test exercises both builder and standalone restart branches and compares the host and builder status values. - Both commits record AI assistance. - No game-derived files, generated shader files, third-party changes or renderer API changes appear in the diff. - The clean-close work runs before the new restart exit status is returned. **Testing:** Read-only review; no commands from the project, builds or tests were run. The author reports a successful Windows in-game run and game-free checks. CI has two head-only failures already recorded by the bot and several checks still running. **Overlaps and merge order:** The PR reports that open #2807 touches the same exit path; merge order was not established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.</sub>
@ -59,1 +66,3 @@
static void relaunch(void) {
/* (the status the game exits with: HOS_RESTART_EXIT when its builder starts it again, else 0) */
static int relaunch(void) {
if (bc_given()) {
Member

L2 (should fix): The actual Windows entry points still need the integration runs listed in the PR.

When: The recorded run imitates the Launcher's command and uses the control bridge; it does not exercise the Launcher's session state or the Steam and desktop shortcut output paths after a restart.

Do: Run Restart now through the Windows Launcher, a Steam tile and a desktop shortcut, and check that the game returns in the same session without an already-running message.

**L2** (should fix): The actual Windows entry points still need the integration runs listed in the PR. *When:* The recorded run imitates the Launcher's command and uses the control bridge; it does not exercise the Launcher's session state or the Steam and desktop shortcut output paths after a restart. **Do:** Run Restart now through the Windows Launcher, a Steam tile and a desktop shortcut, and check that the game returns in the same session without an already-running message.
@ -0,0 +22,4 @@
import tempfile
from pathlib import Path
RUN_ALL_ARGS = ["--cc", "gcc"]
Member

L1 (should fix): The new check hard-codes gcc instead of using the compiler selected by the test runner.

When: On a supported Windows llvm-mingw or Linux Clang setup with CC set and no gcc on PATH, run_all skips this regression check even though a suitable compiler is available; CC is ignored when gcc is present.

Do: Pass the runner's {cc} selection and accept its compiler command, including any arguments, in the test.

**L1** (should fix): The new check hard-codes gcc instead of using the compiler selected by the test runner. *When:* On a supported Windows llvm-mingw or Linux Clang setup with CC set and no gcc on PATH, run_all skips this regression check even though a suitable compiler is available; CC is ignored when gcc is present. **Do:** Pass the runner's {cc} selection and accept its compiler command, including any arguments, in the test.
Author
Member

Thanks for the review. Pushed f73cf723d (the two commits rewritten, test then fix):

  • L1 (the check's compiler): tests/test_restart_by_builder.py now declares RUN_ALL_ARGS = ["--cc", "{cc}"],
    defaults to $CC (else gcc), and splits the command, so --cc "gcc -O1" and CC=clang work. Ran with gcc, clang,
    gcc -O1 -DX=1 and through mise run test on Windows, and with clang -O2 on Linux. The test commit alone still
    fails on main for the bug ("started by a builder, Restart now started 1 program(s) and exited 0").
  • L4 (Lint): pre-commit's ruff checks each changed file, and tests/test_crash_record.py (its exit inventory
    changes here) had 43 statements joined by ; (E702). They are on lines of their own now, with the syntax tree checked
    unchanged; pre-commit run --files passes on every changed file.
  • L3 (Third-party parts and guide screenshots): this fails on main 28cb22b9 the same way. check_guide_screenshots.py --review-sources asks for a review of gpu/vk/device_policy.h, vk_internal.h and vk_texture.h, which recent main
    changes touched; this PR changes none of them, and the job's other steps pass here. #2871 records that review.
  • L2 (the real entry points): ran the builder's side of the shortcut and Steam-tile start too (play --output user,
    in the same version-folder layout, through the job queue): the same builder started the game again 26 ms after the
    first ended, the bridge answered after 1.8 s, and no second Longshot.exe started, so no "already running" box. The
    Launcher's own Play, and a Steam tile and shortcut the Launcher made, stay in Still to test.
  • The question (an older builder playing a newer game after its rebuild failed): no handshake added. The fallback
    would be the game starting itself, which is the path that hands over and fails today, so a handshake would buy
    nothing. In that case the older builder returns the game's 75 and the game doesn't come back, the same as on main.
    Plus, the pairing needs a builder older than the game it plays: a version folder's builder built the game beside it,
    and a newer builder rebuilds the folder ("another builder") before it plays.
Thanks for the review. Pushed f73cf723d (the two commits rewritten, test then fix): - **L1** (the check's compiler): `tests/test_restart_by_builder.py` now declares `RUN_ALL_ARGS = ["--cc", "{cc}"]`, defaults to `$CC` (else gcc), and splits the command, so `--cc "gcc -O1"` and `CC=clang` work. Ran with gcc, clang, `gcc -O1 -DX=1` and through `mise run test` on Windows, and with `clang -O2` on Linux. The test commit alone still fails on main for the bug ("started by a builder, Restart now started 1 program(s) and exited 0"). - **L4** (Lint): pre-commit's ruff checks each changed file, and `tests/test_crash_record.py` (its exit inventory changes here) had 43 statements joined by `;` (E702). They are on lines of their own now, with the syntax tree checked unchanged; `pre-commit run --files` passes on every changed file. - **L3** (Third-party parts and guide screenshots): this fails on main 28cb22b9 the same way. `check_guide_screenshots.py --review-sources` asks for a review of `gpu/vk/device_policy.h`, `vk_internal.h` and `vk_texture.h`, which recent main changes touched; this PR changes none of them, and the job's other steps pass here. #2871 records that review. - **L2** (the real entry points): ran the builder's side of the shortcut and Steam-tile start too (`play --output user`, in the same version-folder layout, through the job queue): the same builder started the game again 26 ms after the first ended, the bridge answered after 1.8 s, and no second `Longshot.exe` started, so no "already running" box. The Launcher's own Play, and a Steam tile and shortcut the Launcher made, stay in Still to test. - **The question** (an older builder playing a newer game after its rebuild failed): no handshake added. The fallback would be the game starting itself, which is the path that hands over and fails today, so a handshake would buy nothing. In that case the older builder returns the game's 75 and the game doesn't come back, the same as on main. Plus, the pairing needs a builder older than the game it plays: a version folder's builder built the game beside it, and a newer builder rebuilds the folder ("another builder") before it plays.
llun force-pushed fix/restart-now-through-builder from b6f4abb889
Some checks failed
CI / What the change needs (pull_request) Successful in 10s
CI / Third-party parts and guide screenshots (pull_request) Failing after 14s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 15s
PR description / Title and description (pull_request_target) Successful in 5s
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
to f73cf723d9
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Failing after 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Successful in 5s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m40s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m20s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m33s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m23s
CI / Website build and checks (pull_request) Failing after 36s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 20m47s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 31m15s
2026-11-30 07:29:07 +00:00
Compare
Author
Member
@review
BeanBot requested changes 2026-11-30 07:30:34 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The reported Windows run shows the builder restarting the game, but the actual Launcher, desktop shortcut and Steam tile entry points still need the integration runs requested in L2. (It stands on L3: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 14s.)

On Windows, a builder-started game asks its existing builder to restart it, keeping the profile and Launcher session. The change adds a small restart protocol and game-free checks.

Blocking (1): must change before merging.

  1. L3: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 14s.

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

  • L2 host/hos_relaunch.c:68: The actual Windows entry points still need integration runs. When: The reported runs start the builder in equivalent modes but do not exercise the Launcher session or its generated shortcut and Steam tile. Do: Run Restart now from Launcher Play and from a Launcher-created desktop shortcut and Steam tile; confirm the game returns in the same session without an already-running warning.

@fix can do L3.

Since the last review (on b6f4abb889)
Resolved: L1 (The new check hard-codes gcc instead of using the compiler selected by the test runner.); L4 (The check CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) fails on this he…)
Still open: L2 (The actual Windows entry points still need integration runs.); L3 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)

Checks: Still running: 7 checks.

Also noticed (2; not asked for, not blocking)
  • A Linux or Deck Restart now run is still listed as outstanding.
  • The reported third-party screenshot check failure also occurs on main; the supplied CI status reports it as head-only.
More: does it help, other systems, switches, what was read

Does it help: Yes: the reported Windows run restarted the game under the same builder 20 ms after it ended; the equivalent main build left no game running. This is not a performance change.

Other systems: Linux retains its execve restart path; a Linux or Deck game run remains unreported. Builder-started Windows games use exit status 75; games without a builder channel retain self-relaunch.

Switches: None.

Reviewed: f73cf723d9 against 28cb22b9ed: Read repository rules, the PR diff and commits, the restart test and relevant host and builder code; skimmed the remaining changed tests and documentation. The large combined source output was truncated, so not every changed file was read in full.; nothing run (a code review).

Checked and fine:

  • The builder-side Windows runs report a new game under the same builder for both JSON and user output.
  • The new compiler selection is passed through the test runner's placeholder.

Testing: No commands that build or run project code were executed. The author reports game-free checks and Windows in-game runs; several CI checks are still running.

Overlaps and merge order: PR #2807 touches the same exit path; its merge order is not established.


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

**Recommendation: Request changes.** The reported Windows run shows the builder restarting the game, but the actual Launcher, desktop shortcut and Steam tile entry points still need the integration runs requested in L2. (It stands on L3: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 14s.) On Windows, a builder-started game asks its existing builder to restart it, keeping the profile and Launcher session. The change adds a small restart protocol and game-free checks. **Blocking (1)**: must change before merging. 1. **L3**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 14s. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `host/hos_relaunch.c:68`: The actual Windows entry points still need integration runs. *When:* The reported runs start the builder in equivalent modes but do not exercise the Launcher session or its generated shortcut and Steam tile. **Do:** Run Restart now from Launcher Play and from a Launcher-created desktop shortcut and Steam tile; confirm the game returns in the same session without an already-running warning. `@fix` can do L3. **Since the last review** (on b6f4abb889d6) Resolved: L1 (The new check hard-codes gcc instead of using the compiler selected by the test runner.); L4 (The check `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)` fails on this he…) Still open: L2 (The actual Windows entry points still need integration runs.); L3 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) **Checks:** Still running: 7 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - A Linux or Deck Restart now run is still listed as outstanding. - The reported third-party screenshot check failure also occurs on main; the supplied CI status reports it as head-only. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the reported Windows run restarted the game under the same builder 20 ms after it ended; the equivalent main build left no game running. This is not a performance change. **Other systems:** Linux retains its execve restart path; a Linux or Deck game run remains unreported. Builder-started Windows games use exit status 75; games without a builder channel retain self-relaunch. **Switches:** None. **Reviewed:** f73cf723d9e0 against 28cb22b9ed23: Read repository rules, the PR diff and commits, the restart test and relevant host and builder code; skimmed the remaining changed tests and documentation. The large combined source output was truncated, so not every changed file was read in full.; nothing run (a code review). **Checked and fine:** - The builder-side Windows runs report a new game under the same builder for both JSON and user output. - The new compiler selection is passed through the test runner's placeholder. **Testing:** No commands that build or run project code were executed. The author reports game-free checks and Windows in-game runs; several CI checks are still running. **Overlaps and merge order:** PR #2807 touches the same exit path; its merge order is not established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Author
Member

On f73cf723d: Lint passes now; L1 and L4 are done.

  • L3: not this PR's. Main 28cb22b9 fails Third-party parts and guide screenshots the same way (check_guide_screenshots.py --review-sources: gpu/vk/device_policy.h, vk_internal.h and vk_texture.h changed since the Graphics image's review), and this PR changes none of those files. #2871 records that review; once it merges, this branch is rebased onto main and the job reruns.
  • L2: still in Still to test: the Launcher's own Play, and a desktop shortcut and Steam tile the Launcher made, with a version built from this branch. The builder's side of both outputs (json and user) ran in the game, as Testing says.
On f73cf723d: Lint passes now; L1 and L4 are done. - **L3**: not this PR's. Main 28cb22b9 fails *Third-party parts and guide screenshots* the same way (`check_guide_screenshots.py --review-sources`: `gpu/vk/device_policy.h`, `vk_internal.h` and `vk_texture.h` changed since the Graphics image's review), and this PR changes none of those files. #2871 records that review; once it merges, this branch is rebased onto main and the job reruns. - **L2**: still in Still to test: the Launcher's own Play, and a desktop shortcut and Steam tile the Launcher made, with a version built from this branch. The builder's side of both outputs (`json` and `user`) ran in the game, as Testing says.
Author
Member

L2: ran in the real Launcher (nightly-247-29c6603a) on Windows 11, RTX 5080, with this branch's builder and game added as a version, through the job queue. Restart now from the game's own menu (Output resolution changed, then Restart Now):

  • The Launcher's window, Play Longshot: the game exited 75, the same builder under the same Launcher started it again at once, at the new Output resolution; the Launcher's stream got game_starting, game_started and game_ready again in the same session, and Home was back on Ready to play after the game was closed.
  • A shortcut's start (LongshotLauncher.exe --play <version> --profile <folder>, what the Launcher's desktop shortcuts and Steam tiles run): the same; no second Longshot.exe, no "already running" box, the Launcher exited 0 at the end.

Testing has the details. Left in Still to test: a tile started by Steam itself (Steam's job around the Launcher) and Linux or the Deck. L3 is still main's (#2871).

**L2**: ran in the real Launcher (nightly-247-29c6603a) on Windows 11, RTX 5080, with this branch's builder and game added as a version, through the job queue. Restart now from the game's own menu (Output resolution changed, then Restart Now): - **The Launcher's window, Play Longshot:** the game exited 75, the same builder under the same Launcher started it again at once, at the new Output resolution; the Launcher's stream got `game_starting`, `game_started` and `game_ready` again in the same session, and Home was back on Ready to play after the game was closed. - **A shortcut's start** (`LongshotLauncher.exe --play <version> --profile <folder>`, what the Launcher's desktop shortcuts and Steam tiles run): the same; no second `Longshot.exe`, no "already running" box, the Launcher exited 0 at the end. Testing has the details. Left in Still to test: a tile started by Steam itself (Steam's job around the Launcher) and Linux or the Deck. L3 is still main's (#2871).
Author
Member
@review
BeanBot left a comment

Recommendation: Request changes. Restart now is shown working through the real Launcher and the shortcut command, but the Steam tile run requested in L2 remains outstanding. (It stands on L3: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 14s.)

The Windows game asks its existing builder to start it again, preserving the profile lock and Launcher session. The change adds a small restart protocol between the game and builder.

Blocking (1): must change before merging.

  1. L3: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 14s.

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

  • L2 host/hos_relaunch.c:68: The remaining Windows entry-point runs need verification. When: A Steam tile started from Steam has not been exercised, and the reported shortcut run used its command rather than a Launcher-created shortcut. Do: Run Restart now from a Launcher-created desktop shortcut and a Steam tile started by Steam; confirm the game returns and the Launcher session ends normally.

@fix can do L3.

Since the last review (on f73cf723d9)
Still open: L2 (The remaining Windows entry-point runs need verification.); L3 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)

Checks: Still running: 7 checks.

Also noticed (4; not asked for, not blocking)
  • A Linux or Deck Restart now run is still listed as outstanding.
  • The reported third-party screenshot check failure also occurs on main; the supplied CI status reports it as head-only.
  • The reported Linux or Deck restart run remains outstanding.
  • The guide-screenshots failure is reported to occur on main as well; several CI checks are still running.
More: does it help, other systems, switches, what was read

Does it help: Yes: the reported Windows Launcher run reopened the game at the new resolution; on main, the game did not return. The same builder restarted it in the reported control-bridge run, 20 ms after exit.

Other systems: Linux retains its execve restart path; a Linux or Deck run is still listed as outstanding. Windows games started without a builder retain the existing self-relaunch path. The reported Windows runs cover Launcher Play and the shortcut command, but not a tile started by Steam itself.

Switches: None.

Reviewed: f73cf723d9 against 28cb22b9ed: Read the repository rules and pull request template, the restart and builder-channel changes, the restart test, and the relevant play-loop diff and callers. Skimmed the remaining changed tests and documentation; did not read play.rs or all changed files in full. No review checklist file was found.; nothing run (a code review).

Checked and fine:

  • The reported real Launcher Play run returned at the changed resolution and reported the new game in the same session.
  • The builder loop restarts status 75 without rebuilding unless the game also requested a build.

Testing: No commands from the project were run. The author reports game-free tests and Windows in-game runs; Steam itself and Linux or Deck remain to be tested.

Overlaps and merge order: #2807 touches the same exit path; merge order is not established.


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

**Recommendation: Request changes.** Restart now is shown working through the real Launcher and the shortcut command, but the Steam tile run requested in L2 remains outstanding. (It stands on L3: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 14s.) The Windows game asks its existing builder to start it again, preserving the profile lock and Launcher session. The change adds a small restart protocol between the game and builder. **Blocking (1)**: must change before merging. 1. **L3**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 14s. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `host/hos_relaunch.c:68`: The remaining Windows entry-point runs need verification. *When:* A Steam tile started from Steam has not been exercised, and the reported shortcut run used its command rather than a Launcher-created shortcut. **Do:** Run Restart now from a Launcher-created desktop shortcut and a Steam tile started by Steam; confirm the game returns and the Launcher session ends normally. `@fix` can do L3. **Since the last review** (on f73cf723d9e0) Still open: L2 (The remaining Windows entry-point runs need verification.); L3 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) **Checks:** Still running: 7 checks. <details> <summary>Also noticed (4; not asked for, not blocking)</summary> - A Linux or Deck Restart now run is still listed as outstanding. - The reported third-party screenshot check failure also occurs on main; the supplied CI status reports it as head-only. - The reported Linux or Deck restart run remains outstanding. - The guide-screenshots failure is reported to occur on main as well; several CI checks are still running. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the reported Windows Launcher run reopened the game at the new resolution; on main, the game did not return. The same builder restarted it in the reported control-bridge run, 20 ms after exit. **Other systems:** Linux retains its execve restart path; a Linux or Deck run is still listed as outstanding. Windows games started without a builder retain the existing self-relaunch path. The reported Windows runs cover Launcher Play and the shortcut command, but not a tile started by Steam itself. **Switches:** None. **Reviewed:** f73cf723d9e0 against 28cb22b9ed23: Read the repository rules and pull request template, the restart and builder-channel changes, the restart test, and the relevant play-loop diff and callers. Skimmed the remaining changed tests and documentation; did not read play.rs or all changed files in full. No review checklist file was found.; nothing run (a code review). **Checked and fine:** - The reported real Launcher Play run returned at the changed resolution and reported the new game in the same session. - The builder loop restarts status 75 without rebuilding unless the game also requested a build. **Testing:** No commands from the project were run. The author reports game-free tests and Windows in-game runs; Steam itself and Linux or Deck remain to be tested. **Overlaps and merge order:** #2807 touches the same exit path; merge order is not established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/restart-now-through-builder 2026-11-30 18:14:45 +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/Longshot!2884
No description provided.