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

A shown result's buttons ask for the kept card's call on the forge's own card surface, once a reply and within caps #16285

Merged opened this

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

Merged

A kept card now keeps its buttons. They post only the card's id and which button to POST /talk/act, from the person's own session on the same origin.

Notes

shipped production is serving it deploy 3fede26

opened this

A kept card now keeps its buttons. They post only the card's id and which button to POST /talk/act, from the person's own session on the same origin. The tool and arguments are read from the kept card, and a call that plans first is planned as the person before it is offered; the press keeps the call as a held write and draws the ordinary Do it / Not now turn with the forge's own sentence and the card it came from, so no card button writes without that confirm. The button is claimed only once that confirm is kept, then drawn still, reading Asked. A second press, another person's card, a card older than 10 minutes, a full conversation and a button not on ACTS do nothing; an old card draws no buttons and offers Ask again. A press is a row of conversation_card_press, its own additive migration; a trigger takes a card's presses with it, whether it is pruned or goes with its conversation.

A card is drawn on the card surface (its own background and border, a head that says first where it came from, the forge's mark and the time), which no reply's Markdown can draw; a card with no rows is one line. One reply draws a handle's card once (a later placing is a one-line pointer), at most 10 cards, 10 pointers and 6 blocks; the rest stays text with one line saying how many, on the page and in the terminal. ::show c4 x500 drew 8.7 MB before.

Every issue row of a kept card links to its page: the issues card Talk's own agent keeps now carries its repository (the card extras it skipped), and a new app's card links the app and its first issue.

Try: on a preview, ask Talk "what is the crew doing?" while a run goes; under the placed card press Stop and see Do it / Not now appear, then the button read Asked after Not now Looks: /talk No door: the terminal prints a shown result as plain rows with no buttons and keeps the same caps through plainVoice, which the Conversations screen (src/tui/screens/talk_chats.ts) already calls; a held call is answered on the Confirms screen as before 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 person deciding in place on the forge's own data (#10262), ahead of #6534

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

--- Third piece of the Talk stack tracked on #16103; the first two (#16195, #16252) have landed. One commit on main. Checked: type check clean; gate, no rule line; 887 pass with the one failure that also fails on main (talk-captain-turn); its own tests 30 pass on Linux in the forge's own image.

🤖 Generated with Claude Code

2 earlier comments · 1 event
commented

<!-- look-pages cd92fbb33bb6 --> Look pages for cd92fbb, from the gate:

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

The press path is carefully built: the tool and args are read from the kept card, the door checks session and origin, the body is capped, a press only holds a confirm, and a button is claimed once. I found no security hole in what I could read. The diff was cut off at the test file, so I did not read the rest of the tests. These need fixing in one round:

  1. Design, principles 6 and 7. The pull replaces the deliberate bare card (a hairline on the start side) with a boxed .card.talk-card that has its own background and border. The design doc says a thing gets a hairline where it ends, never a box around it. Draw the card as rows under a hairline, and keep the buttons as plain .btn forms. If a box is really needed to stop a reply's Markdown imitating the forge's data, put that reason in docs/DESIGN.md rather than only in the area doc.
  2. Both doors. A person can press a card's buttons on the page, but the terminal's plainVoice and its screen draw no buttons and have no press. Add the press to the src/tui/ Talk screen, using the same pressCard, and say how in docs/features/talk-voice.md. Otherwise state in the pull why the terminal cannot press.
  3. A stale press appends a tool turn to the thread every time, and nothing is claimed. Repeated presses on an old card grow the thread without limit. Say it once per card, for example by claiming the press as stale, or by not appending a turn when the previous turn already says it.
  4. The talkAct handler sits in src/web/talk_parts.ts, a rendering module, and is imported into server.ts from there. Move it to its own module, src/web/talk_act_page.ts or into pages/talk.ts beside talkConfirm, so that file keeps one concept.
  5. Scope. The changes to cards.ts (App and First issue links) and to mcp/tools/issues.ts (a repo-only card for via callers) are not in the title. Either explain them in the pull with the test that needs them, or drop them.
  6. Tidy: there is a double blank line after pressOnce in src/core/talk_voice.ts. The docs/design/areas/talk.md entry for .talk-card-from and .talk-card-title describes layout twice (principle 1). Shorten it.
  7. Plain words (principle 8). 'Older than 10 minutes, so its buttons are put away.' is odd phrasing. Use 'This result is more than 10 minutes old.'

Fix first: item 1, the boxed card.

commented

Steward note: new head 166eb367, rebased onto main, answering the review.

  1. The card is bare again: .card.bare.talk-card, a hairline on the start side, buttons as plain .btn forms. The cue that it is the forge's own data is the "From the forge … as of <time>" line under the title, which no reply's Markdown carries; docs/features/talk-voice.md says so. No box, so docs/DESIGN.md is unchanged.
  2. Both doors: in an open conversation in the terminal, b lists the fresh buttons of the shown results by label and card, and Enter presses one through the same pressCard, so the same confirm waits. Tested: the terminal presses Stop and a confirm turn appears with the button claimed.
  3. A stale press is said once per card: the first claims stale; later presses add nothing to the thread. The words are plain: "This result is more than 10 minutes old, so nothing was done; ask again for a fresh one." Tested with three presses.
  4. talkAct sits beside talkConfirm in src/web/pages/talk.ts; talk_parts.ts only draws.
  5. to 7. The commit explains the cards.ts and issues.ts changes (every issue row needs its link); the double blank line is gone; the area doc has one line per class.

Checked: type check clean; gate, no rule line; 990 pass with the one failure that also fails on main (talk-captain-turn); 70 pass on Linux.

commented

<!-- look-pages 166eb367335d --> Look pages for 166eb36, from the gate:

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

Round 2, read against the diff since cd92fbb. Every earlier ask is met. (1) The card is bare again: .card.bare.talk-card with a start-side hairline, plain .btn forms, no box, and the area doc has one line per class. (2) The terminal is a door: b in an open conversation lists the fresh buttons and Enter calls the same pressCard, so the same confirm waits. (3) A stale press is said once per card: the first press claims stale, and later ones add nothing to the thread. (4) talkAct sits beside talkConfirm and talk_parts.ts only draws. (5-7) The cards.ts and issues.ts link changes are explained and the doc lines are tidy.

Security reads clean. talkAct needs a signed-in session and refuses tokens. The body is capped at 1 KiB by BODY_CAPS.talkAct. The card is looked up by id and user id, and the conversation is looked up for that user. The tool and its arguments come only from the kept card, and mayAct allow-lists them. Admin-only tools are refused for non-admins. The plan runs as the person before Do it is offered. Claiming a button, holding the write and appending the confirm turn happen in one transaction, with a full conversation giving the claim back. The migration cleans up with a trigger, and account_purge covers the new table. The how-to is in docs/features/talk-voice.md, not the README, and there are no new dependencies. Reply caps (VOICE_CAPS) are small and say plainly what was left as text.

Non-blocking: the stale claim and its turn in pressCard are two statements, not one transaction. A crash between them would lose the 'old result' note, which is harmless.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs