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

Talk's pane frames the starter from the start and streams what the crew member says and does #16347

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The owner's first live use of the pane (0.7.645, trevato/tiny-clicker): he saw the crew start at once but only "The crew is working", and asked to see what the crew member is thinking, the familiar working state, and the template in the preview from the start.

Notes

shipped production is serving it deploy 496afdb

opened this

The owner's first live use of the pane (0.7.645, trevato/tiny-clicker): he saw the crew start at once but only "The crew is working", and asked to see what the crew member is thinking, the familiar working state, and the template in the preview from the start.

  • The starter at once: a new app's starter answers seconds after it is made. The workspace frames the newest pull's preview when it answers, else production (talk_workspace.ts: shows), so a pull the crew has just opened no longer empties the stage. The crew's block sits under the frame, which shrinks to give it room, not in place of it.
  • The crew block is a live region of its own (run.* on the repository), so the frame is never redrawn for the crew. A deploy that turns running reloads the frame it serves, in place (same origin); a pull's preview that comes up while production is framed draws the page once, because its origin must join frame-src.
  • Its own words: plainThought (core/talk_work.ts) reads the crew member's short text between its calls from the run log ("I'll read the starter first…", "Now the game…"), trimmed to about two lines, beside the steps; never anything the forge wrote (lower case, or a known prefix). The page's live tail runs the same function, as it does plainStep. Text only, and only for a reader who may read the run's log, as before. The newest eight lines show.
  • The working state: "<name> is working." with the shine Talk's own agent uses while it answers: the same rule, one more selector, stopped with the run (the line is read again on run.*).
  • The terminal's pane prints the words in quotes beside the steps, and labels the frame by the environment it shows.

Seen headless at 360 and 1280 px (talk-research/design-pass/o11-{360,1280}-starter-{pane,page}.png, scripts/shots-live-pane-2.ts): a real app made with newApp, its starter deployed and framed, a running crew run with three thoughts and its steps. Measured: the crew block starts under the frame (frame 420 px tall, block below it, both in view at 1280 x 900), the working line has the shine animation, the three thoughts and the steps are text, no horizontal scroll, no page errors.

Sizes near use: the script measures 48,173 B (main's pin 47,300: +870 for plainThought and the deploy hook), pin 48,400; the page with a code reply 51,164 B under main's 52,000; /talk's gzip ceilings js 39,424 and css 55,296.

{"go": "/talk on a conversation that just made an app, Preview tab, while its crew run works", "look": "the pane", "expect": "the starter framed, \"<name> is working.\" shining under it, the crew's words and steps below"}
{"go": "the same when a later deploy of production turns running", "look": "the frame", "expect": "it reloads in place; the page does not"}
{"go": "the same at 360 px", "look": "the Preview tab", "expect": "frame then crew block in one column, words wrapped, no horizontal scroll"}

Try: ask Talk to build a tiny app; the Preview shows the starter at once, with the crew member's words and steps under it as it works Looks: /talk Direction: the owner's "i want to see what the crew member is thinking and the familiar working loading state… the preview even showed the template at the start" (#15734), ahead of #6534 No door: the terminal's pane prints the same words and steps from the same core read (paneCrew), tested

Co-Authored-By: Claude Fable 5 <[email protected]>

--- The owner, 2026-11-24, after #16339 went live: "i would prefer it if i was streamed more information. like i want to see what the crew member is thinking and the familiar working loading state… it would be nice if the preview even showed the template at the start that way I can see it going. that would keep me engaged and make me feel like the forge is listening". Built and checked through the real /mcp new_app path with production's stored turns, on the fence fix (#16344). One commit.

🤖 Generated with Claude Code

2 earlier comments · 1 event
commented

<!-- look-pages 8923226b6fad --> Look pages for 8923226, from the gate:

  • look pages (named): this pull changes src/web/pages/talk_client.ts, src/web/pages/talk_preview.ts; a commit names /talk
Changes requested — before the latest push

Framing production from the start and streaming the crew's words is the right move for Talk, and the log text is only ever drawn as text and only for readers of the run log. Two things to fix before it lands.

  1. The crew block is a live region that may not exist when it is needed. It is drawn only while a run is queued or running, or after a failure. Once a run ends ok, the block is gone, and the aside has no data-live while a frame is shown (waiting is false). The crew's next run is then never picked up, and the starter frame stays with no sign that the crew is working. Make the pane's own live region cover the framed case, or always draw an (empty) #talk-crew-now while the pane is open. Also check that the fragment=pane swap, which returns the whole aside, swaps only #talk-crew-now and never the iframe. Add a test that fetches the fragment and swaps it with a frame present.
  2. The test the starter framed from the start builds its expected string with .replace("&#39;", html.includes("&#39;") ? ...), which cannot fail. Assert the one real escaping.

Smaller: crew! in talk_preview.ts is a non-null assertion that the going || guard only half justifies; narrow it instead. The TUI test checks the “ thought line only indirectly; add one thought to the screen test. A review block for the page change (go/look/expect) is missing from the description.

commented

Steward note: new head 89aaef01f, one commit on the trunk, answering the review. (1) Under a frame, #talk-crew-now is always drawn while the pane is open, empty and hidden once a run ends ok; the fragment=pane swap replaces only that region by id, never the iframe. Test: a finished run leaves the region empty and the crew's next run is swapped into it, asserting the same iframe element and src (it fails if the empty region is removed). (2) The test now asserts the one real escaping, I&#39;ll. Smaller: crew! narrowed, a thought line in the TUI screen test, the review block. Also the edge of a pull preview framed when production deploys: nothing moves while the pull is open; once it lands, the page draws once; tested. Also checked against a production conversation (flashcards, 0.7.647): the crew block under the framed starter, and the production deploy reframing in place, each with a test; a further test reads the real /events deploy event as the owner.

commented

<!-- look-pages 89aaef01f94a --> Look pages for 89aaef0, from the gate:

  • look pages (named): this pull changes src/web/pages/talk_client.ts, src/web/pages/talk_preview.ts; a commit names /talk
Approved

Approved. The starter is framed from the start, the crew block sits under the frame as its own live region (always drawn, empty when idle, so the next run is picked up without touching the iframe), and the crew's words are drawn as text only, for readers of the run log only. The first-round points are answered with tests that would fail without them. The TUI pane prints the same lines, docs/features/talk.md and docs/design/areas/talk.md carry the how-to and the new classes, README is untouched, and no dependency is added.

Two things I would do next:

  1. plainThought tells the crew's words from the forge's log lines by a capital first letter. A new forge log line that starts with a capital will show up as the crew's words. Mark the crew's own text at the source in the log, and drop the prefix list.
  2. A pull preview that comes up while production is framed reloads the page for any pull's deploy, not just the newest one. Compare the deploy's env with previewEnv(newestPull) before reloading. The test file also ends with a stray blank line.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs