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
Merged 10h 3m 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.
-
Reviews
ApprovedThe fix is small and correct: a set key,
u, or ana/d/pprompt pressed before the first read now waits for it instead of answering "Reading the lockfile…". The new test pressessat once and would time out without the change. The three waits now look for the screen's ownSurvival performance set:/Quality of life set:line rather than the footer hint, which removes the race that made the test flaky. The change is terminal-only, so no page or how-to change is owed. No dependency is added, and the terminal's operator gate is unchanged.Two things I would do next:
await firstwaits for all ofload(), including the Modrinth update checks (updatesOf,packUpdateOf), not only the lockfile read. On a slow Modrinth the preview stalls with no sign why. Split the lockfile read from the update check so a key waits only for the lockfile, and say "Reading the lockfile…" in the footer note while it waits.- The
/search handler still refuses with "Reading the lockfile…" whenmodsis unread, so it behaves differently from the other keys. Have it await the first read the same way.
-
Checks
shipped production is serving it deploy 3eab8eb
-
History
- Mods in the terminal: a set's key pressed before the lockfile is read waits for it (#18230) 7ac4364
- Crash reports: the route accepts the Apple app's body (os, device, at, previousRun, findings) (#18226) 24247ac
- Games: spark profile call tree and flame graph on the forge (#18211) 5ce50ab
- Stop and Delete a cloud machine or volume from the cost row, each confirmed only by typing its name (#18187) bcce730
- Access 5c: a linked game player mints the visitor principal (#18209) d46f453
- A changes-requested review with only a body is invisible: the pull's API, its reviews list and a repeat review request all say nothing (#18184) 1b94cba
- Full suite red: 3 files in check run 01m90cxa10vb1wxr16pmrhnt09 (#18225) 831c98f
- Game door: plain questions go to Talk at once, and continue until /forge clear (#18055) b5161cb
- Spend 3: the same cost reads and planned stop/delete as MCP tools and a terminal screen (#18206) c30e6bb
- Games: host the spark profiler viewer and its uploads in the forge (#18096) beabbda
- Games: a day after a mod set is installed, the games page says whether it helped, with take-back one tap away (#18201) 2243020
- Games: installing the quality set ships Essential Commands' config with only /home, /spawn and /tpa on (#18199) 7b84b2c
- Connections on an account: verified identities the person controls, each with its own uses, and a lookup that answers only on opt-in (#18120) 314f4eb
- A granted app's two-page print comes out as one sheet, printed on both sides (#18194) e2e7eb4
- Traces 5c: the trace list and one trace read through MCP tools and a terminal screen compare (#18183) cc38920
- Access 5a: a visitor principal is minted only when a visitor creates something, signed, with a role in may() and per-visitor limits (#18174) e261ee9
- Games: the forge pins forge-velocity d0635dac1654 (cannot throw into a command) (#18203) 08c4b42
- Spend 2: plan a Stop or Delete from the cost row, refused on a read-only account, audited (#18170) fecfd88
- Mail from the owner's AWS account: the forge sets up SES, its DNS records and the mail key in one confirmed step (#18119) bd73c12
- Games: a mod-set install refuses a Modrinth slug that now points at a different project than the lock holds (#18200) fa82fd9
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
sas 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
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
sbefore 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 coverss,uand anything typed into thea,dorpprompts.Tests: in
test/game-mods.test.ts:"Survival performance set:","Quality of life set:") rather than text the footer hint also contains.sas 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 --noEmitpass. Only the terminal changed, so the commit carries aNo 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 presssstraight away. The set's preview appears instead of "Reading the lockfile…".🤖 Generated with Claude Code
Closes #18230