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

An app's first build's draft deploys at its opening and each push, and the pane swaps to it in place #16388

Merged opened this

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

Merged

Early push (#16345) on 0.7.653, as the owner (trevato/habit-streak): the draft pull #2 was open at 02:33:34, but its preview was "asleep until someone opens it" ("no deploy of this head yet"), so the pane framed the starter on production until the landing at 02:40:48: nothing the builder made was visible for seven minu…

Notes

shipped production is serving it deploy 3fede26

opened this

Early push (#16345) on 0.7.653, as the owner (trevato/habit-streak): the draft pull #2 was open at 02:33:34, but its preview was "asleep until someone opens it" ("no deploy of this head yet"), so the pane framed the starter on production until the landing at 02:40:48: nothing the builder made was visible for seven minutes.

  • Why it slept: a pull's preview is built at the push only when something asks for it (apps/prepared.ts: eager, check, look); a draft declared a check, so it was recorded asleep at each head (prepare). A draft its builder is still writing now asks (draft, in pushAsker): its preview deploys at its opening and at each push, as the draft's own migration note already said it should.
  • Why the pane would not have swapped even then: a deploy of another environment drew the page once (its origin was not in the page's frame-src). Now the conversation's own repository names its next three pulls' previews in frame-src ahead, by exact origin, counted on from the highest issue number a reader can see (never the issue counter, which a sealed report moves). When another environment of the repository comes up (the draft's preview, or production once it lands) the pane is read again and swaps in place where the page may frame it; anywhere else it draws the page once, as before.
  • The line under the bar says "Preview of #2 (draft, still building)" while the build writes it.
  • The line under the receipt said "The crew pushed #2: checks running." during a draft, where no check runs. While draftRun is set it says "cheffry-james is building #2: its preview is live." (the builder named from the draft's run); once the pull is ready, the words it had.

Tests: test/talk-receipt-follow.test.ts (the draft's line, and the pull's words once it is ready), test/apps-idle.test.ts (a draft deploys at its opening and at the next push, never asleep), test/talk-page.test.ts (the draft's preview swaps in place, production moving nothing while the pull is open, back to Live in place when it lands, an origin the page may not frame draws it once), test/talk-pane-bar.test.ts (frame-src names the next previews ahead; a sealed report does not move them; the draft's info line).

Seen headless at 1280 and 360 px through the real path (new_app through /mcp with the owner's turns, the starter on production, then a draft opened as crew/early.ts opens one; scripts/ shots-draft-preview.ts, talk-research/design-pass/o23-*): the pane on the starter, then on the draft's preview with "Preview of #2 (draft, still building)", then back on production after it lands, every swap in place (the page never navigated), no horizontal scroll, no page errors.

Sizes near use: the script measures 53,291 B (+600 for the in-place swap), pin 53,500; /talk's gzip ceilings js 40,960, css 56,064.

{"go": "/talk, ask for a new app, and watch the pane while the crew works", "look": "the frame and the line under the bar", "expect": "the starter, then within a minute of the builder's first push its draft's preview, in place, with \"Preview of #N (draft, still building)\"; each push updates it"}
{"go": "the same when the pull lands", "look": "the frame", "expect": "back on Live with the landed change, in place; the page does not reload"}
{"go": "the draft's pull page", "look": "its preview", "expect": "running at its head, never \"asleep until someone opens it\""}

Try: ask Talk to build an app and keep the pane open: the draft's preview replaces the starter as the builder pushes, then Live once it lands Looks: /talk Direction: the owner saw nothing the builder made for seven minutes on 0.7.653 (#16345), ahead of #6534 No door: the terminal's pane names the preview's address for the newest pull and prints the same line (paneInfo), and the draft's pull page says its preview is running

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

--- Found on production 0.7.653 (conversation 01m888p08h72g9qn36565yswd4): early push opened the draft at 02:33:34, but its preview was recorded asleep and the pane showed the starter until the landing at 02:40:48. One commit.

For the reviewer: frame-src now names the conversation's own repository's next three pull previews ahead, by exact origin, counted from the highest issue number the reader can see (not the issue counter, which a sealed report moves). Please check that this lets the page frame nothing outside that repository's own previews.

🤖 Generated with Claude Code

commented

<!-- look-pages e88e28c73a7c --> Look pages for e88e28c, from the gate:

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

Approved. A draft's preview now deploys at its opening and each push (pushAsker returns draft), the pane swaps to it in place when the origin is one the page may frame, and the work line and pane info say "building" instead of the false "checks running". There is no new markup, so the design principles are untouched, and it works with JavaScript off because the fallback is a full reload. Each behaviour has a test that would fail without it (idle deploy, frame-src ahead, in-place swap and reload fallback, work line, pane info). The size budget and docs/features/talk.md move together, and README is untouched.

Two things I would do next:

  1. A draft numbered more than 3 past the highest visible issue (many sealed reports in between) still falls back to a full page reload, which loses scroll. Counting from the pull's own number, if the conversation knows it, would make the window exact.
  2. Check that the terminal's Talk screen shows the same work line ("is building #N: its preview is live.") and add a test there if it reads a separate path.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs