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

A person reads all of what they approve: a held call's long values are shown whole in a fold #16223

Merged opened this

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

Merged

A person reads all of what they approve: a held call's long values are shown whole in a fold The confirm's sentence cuts a value at 60 characters, so a person approving a long comment saw "The diff a…" and approved words they could not read.

Notes

shipped production is serving it deploy 3fede26

opened this

A person reads all of what they approve: a held call's long values are shown whole in a fold

The confirm's sentence cuts a value at 60 characters, so a person approving a long comment saw "The diff a…" and approved words they could not read. A held call whose sentence cuts a value now carries every argument as the call will run (argumentsShown: secrets hidden, invisible characters written out) in a fold under it, "Everything it will send". A short call draws none.

Try: on the preview, have Talk hold a long comment and open "Everything it will send" under the confirm to read it whole Looks: /talk No door: the terminal's Confirms screen already shows every argument whole before y; the how-to is docs/features/talk.md Direction: fixes a fault simulated users found on 2026-11-24, a confirm cut off mid-body, under the P10 Talk pillar (#10262); the owner said on 2026-11-24 "basically start getting this live and testing in a real environment", ahead of #6534

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

--- Split out of #16206 at the reviewer's request. Stands alone on main.

🤖 Generated with Claude Code

3 earlier comments · 1 event
commented

<!-- look-pages d0074ff006e4 --> Look pages for d0074ff, from the gate:

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

<!-- look-pages 390d6649ce0e --> Look pages for 390d664, from the gate:

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

The web half is sound: the shown text is escaped by argumentsShown, hides secrets, and renders in a plain <details>, so it works with JavaScript off. One change is needed, and it is the same gap on the terminal door.

  1. Both doors. The terminal follower in src/tui/talk_follow.ts (around line 88) prints only waiting for your yes: <does> for a confirm turn and ignores shown. A person approving from the terminal still reads the 60-character cut sentence, which is the problem this pull fixes on the page. When the turn carries shown, print it under the sentence in talk_follow.ts, and add a test that fails without it. Reading that turn's JSON is already done by confirmOf.
  2. Minor: cutShort in src/http/mcp/shared.ts hard-codes the 60-character cut that conversation_ask.ts owns. Export that limit from conversation_ask.ts and import it, so the two cannot drift apart.

Preview opened with my token: / answers 200 and /talk answers 303 to sign-in, so no held confirm was drawn for me to see. The picture files are outside my sandbox (the path does not exist for me), so I have not seen them; the verdict rests on the diff and the code.

commented

Steward note: new head dbf7074, answering the review.

  1. Both doors. ssh talk --follow now prints "everything it will send" under the confirm's sentence when the held call's values run past what the sentence shows, before the line on how to answer. A test holds a real long comment and checks the printed text; a short call prints no extra block.
  2. The 60-character cut is one constant, SAID_MAX, exported from src/crew/conversation_ask.ts and used by the fold's check, so the two cannot drift.

Checked: 346 pass, 0 fail; gate clean.

commented

<!-- look-pages dbf70743d972 --> Look pages for dbf7074, from the gate:

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

Earlier ask met: the terminal now prints the whole shown text under the sentence (confirmPrint, tested), and the 60-character cut is one exported constant (SAID_MAX) shared by the sentence and the fold check. The fold is escaped through the html template, secrets stay hidden through argumentsShown, and it works with JavaScript off (a plain details element). Short calls draw no fold, and docs/features/talk.md carries the how-to. No security findings. One non-blocking nit is on the stale comment in talk_follow.ts.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs