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

Talk keeps working: reversible steps run at once with Undo, an ask is made once #16575

Merged opened this

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

Merged

The owner: "i would like to not say continue anymore… that will be your fastest unlock to autonomous development". In his thread Talk held filing an issue for a Do it twice. Now tell, openpull, close/reopen, assign, labels and edit run at once and leave a receipt with Undo (each undone back to how it was).

Notes

shipped production is serving it deploy 3256dd5

opened this

The owner: "i would like to not say continue anymore… that will be your fastest unlock to autonomous development". In his thread Talk held filing an issue for a Do it twice. Now tell, open_pull, close/reopen, assign, labels and edit run at once and leave a receipt with Undo (each undone back to how it was). With the fence up (the agent read untrusted text), they run at once only where the words stay within that audience (a private repository with no outsiders); elsewhere they are held, and asked once: a repeated call points at the waiting ask instead of drawing a second confirm. The voice says: keep working until the plan is done or truly blocked; never stop to ask whether to continue.

🤖 Generated with Claude Code

Changes requested — before the latest push

I opened the preview: / answers 200 with the signed-out landing page (its title is about software you ask for). Talk is behind sign-in, so I could not see the receipt cards drawn and read the rest from the diff. The idea is sound and the tests cover the main paths. These need fixing in one round:

  1. Both doors and docs. Talk's direct receipts with Undo are web-only. The src/tui/ Talk screen must draw a direct: true tool turn as a receipt with its Undo too, as it does for a confirm's receipt. The behaviour change (reversible steps run at once, an ask is made once) must be written up in docs/features/talk.md. Nothing in the diff touches either.
  2. The fence is weakened with no test for the edges. withinAudience in src/http/mcp/shared.ts lets tell, open_pull, close, assign, labels and edit skip the hold after the agent read someone else's words. Add tests that the hold still applies when the repo is private but contributed, has crewOutsiders, or has an origin. Add one for a person who cannot write the repo. Add one for the ASKED_WRITES_MAX cap. Only the public-repo case is tested now. Also say in the code why edit is safe here: an injected edit to an issue the person authored is reversible only if the body is restored, and the Undo guards only the title.
  3. edit Undo (src/crew/receipt.ts) has expect: { title } only. If the body was changed after the receipt, Undo overwrites it with the stale body. Also expect the body the edit left (add body to the Seen comparison).
  4. labels Undo uses before.labels.split(","). A label name containing a comma is restored as two labels. Keep the names as an array in Seen, or reject the comma case.
  5. waitingSame compares JSON.stringify(args) to the stored args. Different key order means the same call is drawn twice. Compare a canonical form, or add a test with reordered keys.
  6. src/http/mcp.ts (http) now imports actions/conversation_confirms.ts, which imports http/mcp/load.ts. That is a cycle and an inverted layer. Move beforeDirect and noteDirect into a small module of their own that both sides import. Confirm noteDirect runs only when via is a conversation's via, not any via token.
  7. Tidy: the last line of test/talk-go.test.ts, expect(mallory.username).toBe("mallory"), is filler and asserts nothing about the change. Remove it, or use mallory meaningfully.

No design-system issue: src/web/pages/talk.ts reuses receiptCard and adds no new markup.

Changes requested — before the latest push

I could not diff against 8a2b57cf6593 (not in my clone), so I read the whole change. The security shape holds. The held-write bypass is limited to a private repo with no contributor, outsider or origin, where the person can write. The call is per-turn capped, reversible and receipted. The duplicate ask is keyed on via, tool and exact args. The Undo goes through the existing stillSo check. One miss blocks it.

  1. Both doors (blocking). The change edits src/web/pages/talk.ts and src/actions/conversation_confirms.ts, and adds a MCP wiring. AGENTS.md and scripts/gate.ts require that a pull editing an existing page or src/actions/.ts also changes something under src/tui/ and a docs/features/.md. This diff touches neither. A person in the terminal Talk screen gets no receipt or Undo for these direct writes, and the how-to for 'Talk keeps working, Undo on direct steps' has no doc. Fix: render the direct: true tool turn as a receipt with its Undo in the terminal Talk screen (reuse readReceipt, as the web does), and add the how-to to the Talk feature doc under docs/features/ (not README), with a test for the terminal side.
  2. Medium: noteDirect ignores the result of appendTurn, which refuses text over MAX_TURN_CHARS (20,000). The edit receipt stores the whole old body in its Undo args. Editing an issue with a long body writes the change and then silently drops the receipt, so there is no Undo. Fix: when the append fails, say so to the agent in the answer, or keep the old body out of the turn and read it from the event on Undo. Add a test with a long body.

Non-blocking: the tell Undo note says 'filed, then taken back'. That is fine, but reason: dropped also lands in the issue's close history. Say so in the how-to.

Approved

My earlier review's head isn't in this clone, so I read the whole change again against the checklist. Nothing blocks it.

  • Security: the at-once path after the fence is up is narrow. It needs a write grant, a private repository, no contributor, no outsider-directed crew and no origin. It stays under the per-turn cap, and every other case is still asked. An ask for the same call points at the existing one, so it is never drawn twice. Undo runs only from a stored receipt, only for tools in INVERSES, and only while stillSo holds. Nothing is deleted. Undo closes or restores.
  • Both doors: the terminal gets u for receipts in Talk. The how-to is in docs/features/talk-go.md, not README.
  • Tests: test/talk-go.test.ts covers each kind's Undo, the ask-once case, the terminal, and the long-body case with no Undo.
  • Design: the change to src/web/pages/talk.ts reuses receiptCard. It adds no new markup.

Non-blocking: noteDirect is long for one function. Consider moving the says parsing into a small helper later.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs