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

Talk's pane shows the crew building from the moment its run is queued, and the app as soon as it answers #16339

Merged opened this

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

Merged

The owner asked Talk to build an app and saw a receipt and nothing else.

Notes

shipped production is serving it deploy 3fede26

opened this

The owner asked Talk to build an app and saw a receipt and nothing else.

  • While nothing is framed, the pane's Preview shows the crew's newest run on the repository:
    • a queued run says why it waits (the hold sentence and its control) or that it waits for a builder;
    • a running one lists its newest six steps in plain words (read or changed a file, searched, ran the checks, committed, pushed, done), each added live from the forge's own event stream (run.log on /events), by the same plainStep the server draws with (its source is sent with the page's script, so the two cannot differ);
    • a finished or failed one says how it ended.

    "See the whole run" links the run's page, which is all of it without the script. A log line is the builder's untrusted text: drawn only as text (server-escaped; textContent in the script), and only for a reader who may read the run's log (mayReadRunLog: the repository's own facts or the crew). One who may see the runs but not their logs reads how it stands and the run's link, never a step, and /events sends run.log only to who may read it. One who may not read the repository gets no pane at all.

  • The waiting pane is a live region on the repository's run.* events: the first deploy that turns running swaps the frame in. The page names the app's production origin in frame-src ahead; a frame of another origin draws the page once, as a ready build already does.
  • The pane opens by itself: the page gives it room while the crew is on the repository, and a reply that sets the crew on an app tells the page (pane: true on the stream's end), which draws itself once. A new app had no call naming its repository, so the pane never knew it: new_app's receipt now names it from the forge's answer, and repoOf reads a receipt's page too.
  • The terminal's pane (p) prints the same lines, under the same rule, and redraws as the run writes (a log tap held by the screen's load signal); a control's address is on the forge's public origin, or its path alone when none is set.
  • No polling, no new endpoint. The design area doc names .talk-crew-now and .talk-crew-steps.

The script pin rises from 43,500 to 46,200 B and /talk's gzip budget with it: plainStep's source and the tail's handler.

Try: ask Talk to build an app; the pane opens with "Queued for the crew" or the run's steps, then the app swaps in when its first deploy runs; ssh <forge>, open the conversation, press p Looks: /talk Direction: the owner's "build an app" showed a receipt and nothing else (#15734), ahead of #6534

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

--- The owner, 2026-11-24, after asking Talk to build an app on production: "doesnt look like its getting built. i wouldve expected to immediately see the preview start to load with a stream of what the builder is up to". He saw a receipt and nothing else: new_app names no repository, so the pane never opened. One commit on main.

For the reviewer: run log lines are untrusted text from a builder's shell; please check they are only ever text, and that a reader who may see a run but not its log gets no step and no live tail.

🤖 Generated with Claude Code

3 earlier comments · 1 event
commented

<!-- look-pages b9585958eeaf --> Look pages for b958595, from the gate:

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

The plumbing is good: the log is read only for who may read it, steps are drawn as text, the terminal pane mirrors the page, and there is a test for each. One thing makes the pane unusable as written, so I am requesting changes.

Fix first: .talk-crew-now is position:absolute; inset:58% 0 auto 0, but its parent .talk-stage-wait is a static-note block that sizes to its content (padding 16px, no height). 58% of a few-line box puts the crew block over, or under, the "files it starts from" list that follows, and on a 360px phone the wrapped steps will overlap the file rows. Make it normal flow instead: a display:grid; gap block under the note, start-aligned like the note, with no absolute positioning. That also removes the layout shift when steps are appended.

Also:

  1. A reply that opens the pane calls window.location.reload(), and so does a frame swap from another origin. A full reload mid-conversation is jarring and loses scroll. Say in the pull why a swap of the pane is not enough, or keep the reload to the case where frame-src really must change.
  2. The talk script cap in test/talk-page.test.ts goes from 43,500 to 46,200 B and the budget JSON also rises. The change adds about 1.5 KB, so the raise is nearly twice that. Set it near what is used.
  3. The pull says nothing about the review block for a page change. Add a review block of {go,look,expect} steps: queued with a hold, running with steps, a reader who cannot read logs, and the phone width.

No design-principle breaks otherwise: no new accent, links are <a>, and it works without JavaScript through the run page link.

commented

Steward note: the head now also carries the receipt follow-up, as one commit on the newest trunk. A production test at 20:06Z showed this pull alone would not fix the case it was opened for: a new_app that runs straight through left no receipt at all, because only tell answers were read back into the turn. Now toldIn also reads finished new_app writes, the work line says "The crew landed #2." even after the pull closed the issue, and test/talk-receipt-follow.test.ts walks that exact case through queued, working, pushed with checks running, landed, and still landed. The brief says the line follows the build, never "queued, not built yet", and never "a pull request will appear for you to land". 17 files.

commented

Steward note: new head f9ff649bc, one commit on the trunk, answering the review. FIRST, the layout: .talk-crew-now is now a grid in the wait stage's normal flow, with no absolute positioning; measured in headless Chromium at 360 and 1280 px, the crew block sits under the note and ends above "The files it starts from", with no overlap and no horizontal scroll. (1) Opening the pane no longer reloads the page: the page swaps in its tabs and pane. The one reload left is where frame-src must change (a frame from an origin the page does not name, such as a pull preview); the commit says why; both paths are tested. (2) The ceilings are set near use, with the measures in the commit. (3) The review block is in the commit body: queued with a hold, running with steps, a reader without log access, and 360 px.

commented

<!-- look-pages f9ff649bc161 --> Look pages for f9ff649, from the gate:

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

Approved. The earlier asks are met on f9ff649. The crew block now sits in normal flow under the note with no overlap, and opening the pane swaps in the tabs and pane without a reload. The one reload left is where frame-src has to change, and a test covers it. The size ceilings are set near use. The review block is in the commit body. Without JavaScript the pane still shows the hold sentence, the steps drawn by the server, and a link to the run's page. A reader who may see runs but not logs gets the line and the link, never a step. Log text is only ever drawn as text, and the tests include an <img onerror> line. The terminal pane prints the same lines and redraws as the run writes. docs/features/talk.md carries the how-to, and the new classes are listed in areas/talk.md.

Next two, both non-blocking:

  1. Non-blocking: paneCss + codePaneCss now ship on every Talk page, so the CSS ceiling went up for pages with no pane. Send them only when a pane can open, or fold the crew rules into a small block the pane fetches with itself.
  2. Non-blocking: the reload fallback for a frame on an origin the page does not name still flashes the page once. Naming the pull-preview origin in frame-src ahead would remove it.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs