Public: anyone can read this; the crew can change it.
One log reader for a game service, on the page and in the terminal; its commands and answers are its operators' #17768
Merged 13h 48m ago, live in production
A change in who sees what: a game service's viewers read its log and its state. The commands typed at its console and what they printed are for its operators and the box's owner, on the page, its stream and in the terminal. MCP gives no one an answer.
-
Reviews
ApprovedApproved. The preview answers 200, the duplicate-import conflict is already one import in the head (src/web/pages/games.ts:15), and the reader works with JavaScript off: the first paint is server-drawn, the filter is a GET form, and a line's place is a link. The age sentence tells a quiet server from a silent box. Answers sit under their line. The viewer/operator split is kept on the page, the stream and the terminal. The terminal has its pane and the how-to is in docs/features/log-reader.md, not the README.
Two things I would do next:
- The Copy button (src/web/log_reader.ts, the form with data-copy="log") does nothing without JavaScript. Render it hidden and let the script reveal it, so there is no dead control with scripts off.
- The empty
.log-atanchors are focusable only while a filter is on (tabindex -1 otherwise). Give the match link a visible text label such as "Open in place" in the filtered view, so a screen-reader list of links is not 300 identical unnamed marks.
Rebase on main when pushing, as the check there is stale.
-
Checks
shipped production is serving it deploy 9d6fa9d
-
History
- The games page imports core/users.ts once 7f458f0
- Merge remote-tracking branch 'origin/main' into sold/leaf-logs-2 0734f59
- A hold's end always brings the games up, and a failed look at the hold cannot empty a sync's diagnosis (#17761) b19b3da
- Full suite red: test/client-size.test.ts (#17765) 2b7f7ba
- Merge pull request #17758 from sold/leaf-editor-5 6f4dc0f
- Merge pull request #17759 from sold/held-buttons 4629119
- Merge pull request #17757 from sold/leaf-editor-4 49073ba
- A stall's line says whether the thread was computing, queued for a CPU, or blocked (#17752) 411033b
- The watchdog's line says where the silent main thread sits (#17754) 4fe940a
- Merge the current base into leaf-editor-4 69fac8a
- Merge pull request #17755 from sold/leaf-table-fetch-stub 38eecbb
- Tests: a proposal that adds what looks like a secret stops once, on all three ways to propose 59e71ee
- A held box says "held" where a start, restart or recreate would be refused (#17532) d10be43
- Merge pull request #17746 from sold/game-hold e95ca15
- Merge pull request #17750 from sold/leaf-table-2 a4750d3
- infra-page.test.ts puts the real network back when it ends 201dc8b
- Merge pull request #17751 from sold/boot-profile-guard d6c118f
- A brace in quotes opens and closes nothing between a name and its value ca919f0
- Merge remote-tracking branch 'origin/main' into sold/games-held 834521e
- Record #17743's squash: its tree is ee1ae6f93 on the same base, both in here 0c9f9a9
Check red on one test, from the hand-joined conflict in src/web/pages/games.ts: test/dup-imports.test.ts:38 reports games.ts:54: duplicate-import: "../../core/users.ts" is already imported on line 15 (passes without the patch). Main imports getUserByName at line 54; this head adds import { getUserById } at line 15. Fix, one import:
-import { getUserById } from "../../core/users.ts";
import { blockChanges, serviceBlocks, shellBlocks, shellSays } from "../../terminal/blocks.ts";
@@
-import { getUserByName } from "../../core/users.ts";
No allowlist entry needed; the rule is right. Main has also moved (ba85a0f), so the check is stale: rebase when pushing this.
A change in who sees what: a game service's viewers read its log and its state. The commands typed at its console and what they printed are for its operators and the box's owner, on the page, its stream and in the terminal. MCP gives no one an answer. The stream reads the person again at each look.
One reader now draws a service's console on the page and in the terminal, from one model:
ycopies andvpicks a range.game_command.after_log, an additive migration).Ran on 507f00ab2, before main was joined: tsc, the gate, 828 tests in 86 files (826 pass, 2 fail: old tests of what this changes, corrected since). Not run: anything on this head, whose conflict in
src/web/pages/games.tswas joined by hand. No full suite, browser or live forge.Direction: who sees a console's commands (#17532) Try: bun test ./test/log-reader.test.ts ./test/terminal-blocks.test.ts ./test/game-answer.test.ts Looks: /games/<box>/<service> as a viewer has the log alone; as an operator an answer stands among the lines
🤖 Generated with Claude Code