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

Talk's agent asks, plans and says what it knows in three fixed shapes, drawn on the page and in the terminal #16252

Merged opened this

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

Merged

A fenced forge block names its kind on its first line and holds JSON in that kind's one shape.

Notes

shipped production is serving it deploy 61d3d5c

opened this

A fenced forge block names its kind on its first line and holds JSON in that kind's one shape. choices draws the question and a button per option that sends it as the person's next message (only the last reply's are buttons); plan draws steps with their state in words and an icon; known draws Known, Suspected and Unknown (an empty group is left out; an Unknown item and what would settle it are one row), marking a Known item that cites nothing "no source". Anything that does not validate is the code block it always was; a README is untouched. markdown.ts gains renderInline. The terminal's Conversations screen and forge talk (through the turns API's plain) print each block as a plain list, by the same parser.

From replies a real model wrote: an unknown item may come as {item, settle}; an item's ::show handle is its source (the result's title, linked where the reply places it), never printed as text and never labelled "no source"; a fold whose title has an apostrophe folds, and a stray </details> is dropped; an earlier plan says it is as of its reply once a newer one is below.

The how-to moves to its own file now that this piece has a slot, docs/features/talk-voice.md: the shown results section from talk.md and the blocks, so talk.md is main's text again but for its script pin.

The choice script (a press stills every choice and puts the cursor back in the box) takes the page's script to 20,827 B, so its pin in test/talk-page.test.ts moves from 20,700 to 20,900 B and talk.md's pin sentence with it; /talk's gzip ceiling holds (27,494 of 28,160 B).

Try: on a preview, post an agent turn holding a forge choices block and press an option; open the same conversation in the terminal's Conversations screen: the choices print as a numbered list Looks: /talk No door: the terminal prints the blocks here, through plainVoice, which the Conversations screen (src/tui/screens/talk_chats.ts) already calls for every reply; nothing under src/tui/ needed to change Direction: the owner asked on 2026-11-22 for Talk to go first and on 2026-11-23 to "get this shipped"; this is the agent asking instead of guessing and saying how it knows (#10262), ahead of #6534

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

--- Second piece of the Talk stack tracked on #16103; the first (#16195) has landed. One commit on main. The owner, 2026-11-24: "i really want to start seeing the Talk feature live and tested end to end". Checked on Linux as well as macOS: the blocks and shown-result tests, including the terminal screen, 55 pass.

🤖 Generated with Claude Code

2 earlier comments
commented

<!-- look-pages aa7bcb822a87 --> Look pages for aa7bcb8, from the gate:

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

<!-- look-pages 62816144f84d --> Look pages for 6281614, from the gate:

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

<!-- look-pages 269d2a9d39a4 --> Look pages for 269d2a9, from the gate:

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

Read the diff (the test file was cut at 61 KB, so I did not read its tail). No security finding.

  • Input: blocks are validated strictly by key set, counts, lengths and one-line text. Strings are cleaned with unsaid. Anything that fails stays an ordinary code block.
  • Output: everything goes through html, escapeHtml or renderInline, which escapes first. The fold-title change allows an apostrophe and escapes it, and a test covers that.
  • Identity: a choice button is a same-origin starter form posting to the existing /talk/:id route, so the write checks who. Only the last reply's choices are live, and a person's own message or a quoted fence is never drawn as a block.
  • Both doors: plainVoice prints each block in the terminal, and forge talk gets it as plain.
  • Docs and design: the how-to is docs/features/talk-voice.md, README is untouched, and the new classes are in docs/design/areas/talk.md. Rows are bare lists at regular weight, with no boxes and no new accent. State is in words as well as icons, and it works with JavaScript off.
  • Tests: test/talk-blocks.test.ts covers valid shapes, each invalid variant, the live-only rule and invisible characters.

Small things to fix forward, not blockers:

  • core/talk_voice.ts imports from crew/conversation_ask.ts. unsaid would sit better in a neutral module.
  • The old-plan header, "Plan, as of this reply; a newer one is below", is a little wordy (principle 8).
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs