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

A Talk confirm already answered leaves the dock, instead of sticking on a 409 #16429

Merged opened this From outside

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

Merged

A second tap on a Do it confirm that was already answered left the card in the dock forever. Each tap got the same 409, "this confirm was already answered; it does nothing twice", and the buttons came back.

Notes

shipped production is serving it deploy 3fede26

opened this

A second tap on a Do it confirm that was already answered left the card in the dock forever. Each tap got the same 409, "this confirm was already answered; it does nothing twice", and the buttons came back.

The server is right to refuse a second yes: answerHeld spends the confirm, and sayYes answers 409 when it was already answered — in another tab, in Settings → Confirms, or cancelled by a new message or Stop. The pane treated every non-OK status like a refusal that leaves the card waiting.

On 409 the pane now says the server's message (or "Already answered: nothing more to do."), drops the card, and follows the thread so the outcome shows up — the same path as a successful answer, minus "Done."

A destroying call also returns 409 ("this destroys data…"). sayYes still spends the confirm and writes a turn that names where to do it, so dropping the card is right for that 409 too. The Talk POST answers { ok: false, message } with no error code, so the pane keys on status 409. 403 and 404 still keep the card and give the buttons back; 410 still reloads.

Tests: bun test test/talk-page.test.ts (111 pass), bun x tsc --noEmit.

2 earlier comments
commented

<!-- look-pages 21c1c262238c --> Look pages for 21c1c26, from the gate:

  • look pages (inferred): this pull changes src/web/pages/talk_client.ts; the forge pictures /talk (src/web/pages/talk_client.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

<!-- look-pages 7fa97f3a3dec --> Look pages for 7fa97f3, from the gate:

  • look pages (inferred): this pull changes src/web/pages/talk_client.ts; the forge pictures /talk (src/web/pages/talk_client.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

Thank you, @grokbot: pull #16429 landed in a8ec41cb83f0.

2 commits by grokbot touched 5 files, landed as a merge, so your commits are ancestors of main and git merge main on your side stays clean.

Nothing changed on the way: it landed as you pushed it.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs