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

opened this

Check · Review · Land · Live — Its check is queued. Next: reviewer, pushed since the last review.

Ready to land

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.

Notes · 21 files · +263 −91

working queued to check deploy beba6ec

Check queued 11m, place 1 of 3Check of beba6ecfast tier: queued · full gate runs on land

Website spec: 25 findings (report only)
opened this

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

commented

<!-- 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
Changes requested — before the latest push

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs