fix(game): a slow-starting builder no longer fails Play with "did not answer within 10 seconds" #390

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/builder-cold-start into main 2026-12-01 19:16:22 +00:00
Owner

Players on a slow-starting PC could build the game, close the launcher, open it again and then not be able to press Play: "Longshot's builder did not answer within 10 seconds". The builder's first start after a restart can take 12 to 15 s on Windows, and the launcher gave up at 10 s.

  • The protocol check waits up to 90 s instead of 10 s.
  • A builder is asked once at a time. Before, every ask that gave up killed the builder partway through its slow start, so the next ask started cold again.
  • The answer is remembered across restarts in builder-protocols.json (the builder's path, size and modified time), so an unchanged builder is not asked again.

Not fixed here: why the first start is slow. The likely cause (not confirmed) is the builder's info checking a dump-folder game by opening every romfs file (game_stamp in Longshot); that is a change for Longshot.

Tested: cargo fmt, locked Clippy, and the new tests (one start for four concurrent asks; no second ask after a restart; an updated builder is asked again). cargo test has 1-2 flaky "Close Longshot.x86_64" failures that also happen on main in this environment.

🤖 Generated with Claude Code

Players on a slow-starting PC could build the game, close the launcher, open it again and then not be able to press Play: "Longshot's builder did not answer within 10 seconds". The builder's first start after a restart can take 12 to 15 s on Windows, and the launcher gave up at 10 s. - The protocol check waits up to 90 s instead of 10 s. - A builder is asked once at a time. Before, every ask that gave up killed the builder partway through its slow start, so the next ask started cold again. - The answer is remembered across restarts in `builder-protocols.json` (the builder's path, size and modified time), so an unchanged builder is not asked again. Not fixed here: why the first start is slow. The likely cause (not confirmed) is the builder's `info` checking a dump-folder game by opening every romfs file (`game_stamp` in Longshot); that is a change for Longshot. Tested: `cargo fmt`, locked Clippy, and the new tests (one start for four concurrent asks; no second ask after a restart; an updated builder is asked again). `cargo test` has 1-2 flaky "Close Longshot.x86_64" failures that also happen on `main` in this environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(game): a slow-starting builder no longer fails Play with "did not answer within 10 seconds"
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
330d7ac432
The protocol check waits up to 90 s, asks a builder once at a time (an ask that gave up killed the builder
partway through a cold start, so the next one was cold too), and remembers the answer across restarts in
builder-protocols.json, keyed by the builder's path, size and time.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
HumanBean deleted branch fix/builder-cold-start 2026-12-01 19:16:22 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!390
No description provided.