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

Talk's live reply draws shown results and blocks as the stored reply will, and a queued message is answered with no reload #16287

Merged opened this

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

Merged

The block being written went through the plain Markdown renderer, so a ::show c7 line and a forge block showed as text and then turned into their drawing when the turn was stored.

Notes

shipped production is serving it deploy 3fede26

opened this

The block being written went through the plain Markdown renderer, so a ::show c7 line and a forge block showed as text and then turned into their drawing when the turn was stored. The live frame now goes through liveHtml (src/web/talk_parts.ts), the stored reply's own code: a placed result shows as its card at once, a forge block is left out until its fence closes, a last line that may still become a show line waits, and choices are never buttons until the reply is stored. The terminal's follower prints the same whole parts, as forge talk prints them.

When a turn ended with a message waiting behind it, the stream was woken before the queue started the next turn, saw nothing running and sent done: the page kept its "Queued" row and drew the queued message and its answer only after a reload. A stream now ends only when nothing runs and nothing waits.

Try: open /talk on the preview, ask "what is the crew doing?" and watch the card appear inside the reply while the rest is still being written; queue a second message while it answers and watch it be answered with no reload Looks: /talk No door: both doors are in existing files: ssh <forge> talk --follow (src/tui/talk_follow.ts) now prints the live and the stored reply through plainVoice and wholeSoFar, a shown result as its lines and a block as a list, never a handle or JSON; the how-to is docs/features/talk-voice.md Direction: the owner asked on 2026-11-22 for Talk to go first and on 2026-11-23 to "get this shipped"; this joins the live reply and Talk's voice (#10262), ahead of #6534

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

--- Fourth piece of the Talk stack tracked on #16103; the first three (#16195, #16252, #16285) have landed. One commit on main. Both doors: ssh <forge> talk --follow prints the live and the stored reply through the same parser forge talk uses, with a test that fails on main. Checked: type check clean; gate, no rule line; 907 pass with the one failure that also fails on main (talk-captain-turn); its own tests 29 pass on Linux in the forge's own image.

🤖 Generated with Claude Code

commented

<!-- look-pages 12e1d1361bc1 --> Look pages for 12e1d13, from the gate:

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

Approved. The live block now goes through the same drawing as a stored reply (liveHtml -> agentHtml), so a placed result shows as its card while the reply is written. An open forge fence and a half-typed ::show are held back, so the reader never sees JSON or a handle flash. Choices stay text until stored, so nothing can send early. The terminal follow prints through plainVoice, so both doors agree. The how-to is in docs/features/talk-voice.md, not the README. No new CSS, no new dependency, no new input boundary. I read the diff and tests; I did not fetch the preview or the screenshots.

Two things I would do next:

  1. Strengthen a stored reply with the same words draws the same card in test/talk-live-voice.test.ts. It only checks that both contain the title after a regex strip. Compare the two outputs after normalising the turn id, so drift between live and stored fails the test.
  2. The stream now stays open while waits.length > 0 (src/web/pages/talk.ts). If a queued message can never drain (for example a failed run), the stream would idle until its own cap. Add a test or a guard so the stream ends and the queue shows its state in words.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs