fix(app): Setup's Continue never waits on the sandbox test, and says why when it can't go on #41

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/setup-continue into main 2026-11-16 02:40:14 +00:00
Owner

Why

Testers say that on Setup's "Step 2 of 2" they sometimes can't continue, even with the game picked. The farm's records fit that. Windows testers zealotn (newest nightly, a few minutes earlier), Yeetbot90 and llun registered but never got past Setup: no sandbox and no game saved. There were three ways to get stuck there:

  1. Windows, the first Continue. It saved, then ran the whole sandbox self-test, one to three minutes with the button greyed. When no sandbox worked, it stayed on the page with only a toast. Continue looked dead, though a second click would have gone through.
  2. A game file whose check throws (a permission error reading exefs, for example). That ended the list's checks without a word, so every file after it stayed at "Checking…" for good, and Continue answered "Pick a supported copy of the game first."
  3. A file picked by hand (Browse, its folders, or a drop). It was checked only after every file the search had found. Until then Continue refused it.

What changed

  • The first setup never waits for the sandbox. Continue saves and goes to the main screen at once. The sandbox is checked in the background (AgentService.CheckSandboxSoon, the same check starting testing runs), and the main screen says how it went, with its existing link to Settings › Sandbox when none works. Settings still tests on save when the hardware changed, and stays open when no sandbox works so the runner account can be set up there.
  • The hint beside Continue says why it can't go on:
    • "Testing the sandbox (about a minute): Continue waits for it."
    • "Setting up the runner account: …"
    • "Checking the game you picked…"
    • "The game you picked can't be used: pick another."
  • A refused Continue says what to do: "Pick your copy of the game first (in the list above, or with Browse)", or why the picked copy can't be used.
  • Game files are checked one by one (CheckOneAsync). A check that throws becomes "Can't be read" with the reason. The picked file goes first, and a file picked by hand is checked at once. Continue waits for the picked file's check instead of refusing it.
  • The game's version check on save (make_game.py --check) gets at most a minute, then the list's own answer is used.

Screenshot (Linux, the app against a dead coordinator, a fake home with a junk zelda.nup): the broken file shows "Can't be read" instead of hanging at "Checking…", and the hint beside Continue says what's missing.

After: this PR, Setup's step 2 with an unreadable .nup, 1180 × 860

Testing

  • Agent checks: 1685 passed. dotnet build agent/App -c Release: no warnings.

  • Linux, headless sway: Setup's step 2 with a junk .nup (above).

  • Not tested: the Windows paths, which need a Windows PC:

    • the first Continue going straight to the main screen while the sandbox test runs in the background;
    • the hint while Settings tests the sandbox;
    • a check that throws.

    A Windows tester's first setup on the next nightly shows the first; the others need their own conditions.

## Why Testers say that on Setup's "Step 2 of 2" they sometimes can't continue, even with the game picked. The farm's records fit that. Windows testers zealotn (newest nightly, a few minutes earlier), Yeetbot90 and llun registered but never got past Setup: no sandbox and no game saved. There were three ways to get stuck there: 1. **Windows, the first Continue.** It saved, then ran the whole sandbox self-test, one to three minutes with the button greyed. When no sandbox worked, it stayed on the page with only a toast. Continue looked dead, though a second click would have gone through. 2. **A game file whose check throws** (a permission error reading `exefs`, for example). That ended the list's checks without a word, so every file after it stayed at "Checking…" for good, and Continue answered "Pick a supported copy of the game first." 3. **A file picked by hand** (Browse, its folders, or a drop). It was checked only after every file the search had found. Until then Continue refused it. ## What changed - **The first setup never waits for the sandbox.** Continue saves and goes to the main screen at once. The sandbox is checked in the background (`AgentService.CheckSandboxSoon`, the same check starting testing runs), and the main screen says how it went, with its existing link to Settings › Sandbox when none works. Settings still tests on save when the hardware changed, and stays open when no sandbox works so the runner account can be set up there. - **The hint beside Continue says why it can't go on:** - "Testing the sandbox (about a minute): Continue waits for it." - "Setting up the runner account: …" - "Checking the game you picked…" - "The game you picked can't be used: pick another." - **A refused Continue says what to do:** "Pick your copy of the game first (in the list above, or with Browse)", or why the picked copy can't be used. - **Game files are checked one by one** (`CheckOneAsync`). A check that throws becomes "Can't be read" with the reason. The picked file goes first, and a file picked by hand is checked at once. Continue waits for the picked file's check instead of refusing it. - **The game's version check on save** (`make_game.py --check`) gets at most a minute, then the list's own answer is used. Screenshot (Linux, the app against a dead coordinator, a fake home with a junk `zelda.nup`): the broken file shows "Can't be read" instead of hanging at "Checking…", and the hint beside Continue says what's missing. ![After: this PR, Setup's step 2 with an unreadable .nup, 1180 × 860](https://git.magicbean.dev/attachments/1d4c5cfb-3e43-44dc-b468-cb744cd6a30c) ## Testing - Agent checks: 1685 passed. `dotnet build agent/App -c Release`: no warnings. - Linux, headless sway: Setup's step 2 with a junk `.nup` (above). - **Not tested:** the Windows paths, which need a Windows PC: - the first Continue going straight to the main screen while the sandbox test runs in the background; - the hint while Settings tests the sandbox; - a check that throws. A Windows tester's first setup on the next nightly shows the first; the others need their own conditions.
fix(app): Setup's Continue never waits on the sandbox test, and says why when it can't go on
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 4s
CI / Coordinator tests (pull_request) Has been cancelled
CI / Agent build and checks (pull_request) Has been cancelled
CI / Coordinator image (pull_request) Has been cancelled
9b1bc33428
Testers on Windows got stuck on Setup's step 2 with their game picked. On
the first setup Continue ran the whole sandbox self-test (one to three
minutes, the button greyed), and when no sandbox worked it stayed on the
page with only a toast, so Continue looked dead. Now:

- The first setup saves and goes to the main screen at once; the sandbox is
  tested in the background (as starting testing does), and the main screen
  says how it went. Settings keeps its test when the hardware changed.
- The hint beside Continue says why it waits (the sandbox's test, the
  runner account) or what's wrong with the game picked, and a refused
  Continue says exactly what to do.
- Each game file is checked on its own: one whose check fails shows "Can't
  be read" with the reason instead of ending the checks and leaving every
  file at "Checking…" for good; a file picked with Browse, its folders or a
  drop is checked at once, not after all the files the search found;
  Continue waits for the picked file's check instead of refusing it.
- The game's version check on save is held to a minute, then the list's
  own answer is used.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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/Beanstalk!41
No description provided.