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

The owner's shell on a game box shows each answer without a reload #17721

opened this

Merged 9h 55m ago, live in production

An answer in a game box's Console came only after a reload. Each command is now a block: what was typed, its state in words and what it printed, drawn from one model (src/terminal/blocks.ts) on the page and in the terminal app.

Notes

opened this

An answer in a game box's Console came only after a reload. Each command is now a block: what was typed, its state in words and what it printed, drawn from one model (src/terminal/blocks.ts) on the page and in the terminal app.

  • The stream sends a block when its state changes, including a change between the page and the stream. The owner's role is read on every look, and the stream closes when it is gone.
  • Up and down walk the earlier commands, on both doors.
  • Both say that the shell runs as root, and that the audit keeps commands and output, secrets too.

Part of #17151.

Ran: tsc and 543 tests in 57 files (0 fail) on 20a005f18; the gate on this head, which adds only an empty commit with the No door: line. Not run: the full suite, a browser, a phone, a real box. This pull's check runs the suite.

Try: as a box's owner, open /games/<box>, run df -h / in Console, and watch the answer appear.

🤖 Generated with Claude Code

commented

72ad27823 answers the review. The input is the shared field (field, with two new options: describedby and autocorrect: false). The datalist is gone, so there is one history: up and down walk the commands of the blocks on the page, newest first and each once. Each block has an Edit button that puts its command in the input and runs nothing, for a phone with no arrows.

Ran on this head: tsc, design-lint, the gate, and 81 test files (653 pass, 2 fail). The two are in test/ui-spec/helper.test.ts ("a small tap target fails, a 44px one passes") and test/ui-spec/coverage.test.ts ("every exported component has a spec or a named exclusion"). Both also fail on 5597df808, and were not run on main. The history test's steps after its datalist check never ran on the old code. Not run: the full suite, a browser, a phone. The layout, with Run on the row under the input, was worked out from the CSS and has not been seen drawn.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs