Public: anyone can read this; the crew can change it.

Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:f4rzrnk9yv is past its budget: trevato/forge: "the survival performance set > the terminal shows the set as the page does, and s previews it" failed o… #18236

opened this

Merged 20h 45m ago, live in production

The terminal's mods screen no longer refuses a set's key pressed before the lockfile has been read. This fixes the flaky test "the survival performance set > the terminal shows the set as the page does, and s previews it", which failed on four pulls in an hour.

Notes

opened this

The terminal's mods screen no longer refuses a set's key pressed before the lockfile has been read. This fixes the flaky test "the survival performance set > the terminal shows the set as the page does, and s previews it", which failed on four pulls in an hour.

Cause: the footer's key hint ("s preview the Survival performance set") is drawn before the screen's first read of the lockfile finishes. The test waited for the text "Survival performance set", so it could match the hint and press s before the lockfile was loaded. The screen then said "Reading the lockfile…" and never showed the preview. Whether the test passed depended on how fast that first read was on the check machine. A person typing quickly in the terminal hit the same refusal.

Fix: in src/tui/screens/game_mods.ts, a preview asked for before the first read finishes now waits for that read instead of refusing. This covers s, u and anything typed into the a, d or p prompts.

Tests: in test/game-mods.test.ts:

  • The survival-set wait and the two quality-of-life waits now look for the screen's own line ("Survival performance set:", "Quality of life set:") rather than text the footer hint also contains.
  • A new test presses s as soon as the screen opens and expects "Adds Lithium 0.17.0". Without the fix it times out on "Reading the lockfile…"; with it the whole file passes (48 tests).

The gate and bun x tsc --noEmit pass. Only the terminal changed, so the commit carries a No door: line and does not touch the web page or its how-to.

Try it: connect with the command in FORGE_APP_SSH, open a game server's mods screen and press s straight away. The set's preview appears instead of "Reading the lockfile…".

🤖 Generated with Claude Code

Closes #18230

commented

The terminal's mods screen no longer refuses a set's key pressed before the lockfile has been read. This fixes the flaky test "the survival performance set > the terminal shows the set as the page does, and s previews it", which failed on four pulls in an hour.

Cause: the footer's key hint ("s preview the Survival performance set") is drawn before the screen's first read of the lockfile finishes. The test waited for the text "Survival performance set", so it could match the hint and press s before the lockfile was loaded. The screen then said "Reading the lockfile…" and never showed the preview. Whether the test passed depended on how fast that first read was on the check machine. A person typing quickly in the terminal hit the same refusal.

Fix: in src/tui/screens/game_mods.ts, a preview asked for before the first read finishes now waits for that read instead of refusing. This covers s, u and anything typed into the a, d or p prompts.

Tests: in test/game-mods.test.ts:

  • The survival-set wait and the two quality-of-life waits now look for the screen's own line ("Survival performance set:", "Quality of life set:") rather than text the footer hint also contains.
  • A new test presses s as soon as the screen opens and expects "Adds Lithium 0.17.0". Without the fix it times out on "Reading the lockfile…"; with it the whole file passes (48 tests).

The gate and bun x tsc --noEmit pass. Only the terminal changed, so the commit carries a No door: line and does not touch the web page or its how-to.

Try it: connect with the command in FORGE_APP_SSH, open a game server's mods screen and press s straight away. The set's preview appears instead of "Reading the lockfile…".

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs