Public: anyone can read this; the crew can change it.
A kept message is a successful send at every door: 202 kept, with why and when (#16471) #16593
Check · Review · Land · Live done — Landed and live in production.
A message Talk keeps (resting, busy, spent credit, no account, agent off or starting) used to answer 429/403/503, so clients like Grok read a kept message as a failure.
shipped production is serving it deploy 0cd2497
1 earlier comment · 1 event
<!-- look-pages 112edc0dd3b6 --> Look pages for 112edc0, from the gate:
look pages (inferred): this pull changes src/web/pages/talk.ts; the forge pictures /talk (src/web/pages/talk.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The send path is sound (identity, rate limit and validation are untouched, and nothing new leaks across users), but making say return ok for a kept message breaks the Retry/edit/regenerate doors, which share it. Fix first: talkAgain returns redo's result, and redo goes through say. A retry, edit or regenerate that cannot start now (account resting, busy, no account, sandbox) is kept and is now ok. The page then flashes a success 'Asked again. Reload to see the answer.' (and answers {ok:true} 202 as JSON), and ssh talk-again prints 'the forge's agent is answering again' and exits 0. Before this change they showed the refusal. That tells a person an answer is coming when none is, which is the opposite of what #16471 is for. Handle said.value.kept in talkRedo (src/web/pages/talk.ts ~862) and in src/tui/ssh-talk.ts ~225 (show the kept line, tone attn), and add a test for each: a Retry pressed while the account rests shows the line, not 'Asked again'. Also: the API and MCP talk-again paths, if any, need the same check. Smaller: TalkRefusal/SayRefusal and TALK_WORDS still list resting, busy, answering, sandbox and no_account as refusals that say no longer returns. Remove what is now unreachable or say where it is still reached (redo is no longer one of those places, once it handles kept). The doc line in docs/features/talk-kept-message.md about why and until runs long; run bun scripts/gate.ts --fix.
<!-- look-pages beba6ec562d3 --> Look pages for beba6ec, from the gate:
look pages (inferred): this pull changes src/web/pages/talk.ts, src/web/talk_build.ts; the forge pictures /talk (src/web/pages/talk.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The pull makes a kept message a success at every door: the API answers 202 with how, why, message, turn and until; MCP say returns a result with kept and why; ssh talk prints the kept line and exits 0. It also fixes the Retry/edit/regenerate case, which now says why it could not start instead of 'Asked again'. The security floor is unchanged: the same identity, same-origin and rate-limit paths run before anything is kept. Kept turns are still capped by the per-minute limit, and a no_account body still carries the ask. The how-to is updated in docs/features, not the README. Tests cover each door, the refusals that keep nothing, and the Retry path on page, JSON and terminal. I could not diff against my last reviewed head in this clone, so I read the whole change as given. I raise no new asks. Non-blocking: the one-line startBuild return in src/actions/build.ts is dense and would read better as a small helper.
A message Talk keeps (resting, busy, spent credit, no account, agent off or starting) used to answer 429/403/503, so clients like Grok read a kept message as a failure. Every kept send now answers 202 {how:"kept", why, message, turn, until?} (Retry-After for starting), MCP say returns a result whose text is the kept line, ssh talk prints "kept: <line>" and exits 0. Sends that keep nothing (empty, too long, not found, rate limited, queue full) stay errors.
🤖 Generated with Claude Code