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

opened this

Merged 7h 58m 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.

Notes

opened 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:

  • Age, always said: live, quiet, or not known since the box was last heard from.
  • Find over all kept lines, with the count. On the page the filter is in the address, and a match opens in its place.
  • Copy takes the lines shown; in the terminal y copies and v picks a range.
  • Answers stand under the log line they came after (game_command.after_log, an additive migration).
  • A page that was away gets every kept line once, and says when some may be missing.

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.ts was 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

commented

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";
+import { getUserById, 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.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs