Public: anyone can read this; the crew can change it.
Talk's Send: shown at once, never doubled, a queued message is plain and editable (#16579) #16582
Check · Review · Land · Live — Its check is queued.
The owner: "if i hit send twice it will send then queue one. client should insta respond and not let me mess up".
working queued to check deploy 989bfd4
Check queued 3m, place 2 of 3Check of 989bfd4fast tier: queued · full gate runs on land
Website spec: 25 findings (report only)
- /board http://127.0.0.1:33173/board answered 303 — https://specification.website/
- /notes http://127.0.0.1:33173/notes answered 303 — https://specification.website/
- /review http://127.0.0.1:33173/review answered 303 — https://specification.website/
- /system http://127.0.0.1:33173/system answered 303 — https://specification.website/
- /admin/limits http://127.0.0.1:33173/admin/limits answered 404 — https://specification.website/
- /maintenance http://127.0.0.1:33173/maintenance answered 303 — https://specification.website/
- /talk http://127.0.0.1:33173/talk answered 303 — https://specification.website/
- /flow http://127.0.0.1:33173/flow answered 303 — https://specification.website/
- /resilience http://127.0.0.1:33173/resilience answered 303 — https://specification.website/
- /boards?help http://127.0.0.1:33173/boards?help answered 303 — https://specification.website/
- /settings/crew http://127.0.0.1:33173/settings/crew answered 303 — https://specification.website/
- /settings/crew?help http://127.0.0.1:33173/settings/crew?help answered 303 — https://specification.website/
- /settings/captain http://127.0.0.1:33173/settings/captain answered 303 — https://specification.website/
- /settings/security/controls http://127.0.0.1:33173/settings/security/controls answered 303 — https://specification.website/
- /settings/grants http://127.0.0.1:33173/settings/grants answered 303 — https://specification.website/
- /preview-admin/sample expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/drop http://127.0.0.1:33173/preview-admin/sample/drop answered 303 — https://specification.website/
- /preview-admin/sample/data-move http://127.0.0.1:33173/preview-admin/sample/data-move answered 303 — https://specification.website/
- /preview-admin/sample/cut-over http://127.0.0.1:33173/preview-admin/sample/cut-over answered 303 — https://specification.website/
- /preview-admin/sample/next?pick expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/bets expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/waves expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/space the first focusable element is not a skip link (an in-page #target link) — skip-link
- /looks/missing http://127.0.0.1:33173/looks/missing answered 404 — https://specification.website/
- /looks/failed http://127.0.0.1:33173/looks/failed answered 500 — https://specification.website/
2 earlier comments
<!-- look-pages 982f9102e72a --> Look pages for 982f910, from the gate:
look pages (inferred): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.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
Check run 01m8g7a803026hb1hpsrdg4ahf on this pull failed in 48s, and the next run for #16582 is a deploy (01m8g80t7taj90vmqk7z6s5t9x), with no green check between them. If this landed or went live past that failure, name the failing step, fix it in one push, and show one green check; if it can't go green, revert. Nothing should deploy on a red check (#16215).
<!-- look-pages cf45418d59c5 --> Look pages for cf45418, from the gate:
look pages (inferred): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.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 idea is right: shown at once, one press is one message, and a queued message is plain with Edit and Drop. The key on the form keeps no-JS to one message. There are three problems, the first two in src/web/pages/talk_client.ts send.
- A failed send loses the attachments.
attached.length = 0andchips.replaceChildren()run before the fetch, butback()restores only the text. Someone who attaches a file and hits a flaky connection gets their words back and the file gone. This breaks the promise that a failed send puts it all back. Fix: keepfilesand the chips and re-attach them inback(). Add a test for it. - Screen readers are not told. The old
say("Sending…")was removed. The pending line is a plain<li>outside any live region, so sending, failing and restoring are silent apart fromfail(). Fix: keepsay("Sending…"). Give the pending row's metarole=statusor callsayon the transitions. - Any person turn on the stream removes the pending line.
if (turn.role === "person") { ... p.remove() }also fires for a person turn from another tab or from an earlier queued message that starts. The pending line then vanishes while this tab's fetch is still out, andback()has nothing to restore. Fix: match the pending line to its own turn, for example by the key or the text, and remove it only then.
Smaller:
queuedFormin the client repeats the markup ofqueuedHtmlin talk.ts. That is two places to keep in step, and the pull's own test pins only the server copy. Fix: take the row from the server'squeuedframe or one shared template, so there is one way to draw it.Editappends to a non-empty box. That is fine, but say it in the status text.
Looked at and fine: the same-origin and per-person scope of the idempotency key, the lookup, send and store with no await between them, the docs in docs/features/talk.md rather than README, the terminal's existing /queue and /unqueue, and the js-only Edit with a Drop form that works without the script. The design principles hold: rows, one accent, plain words.
What I saw of the preview: GET /talk with the token answers 303 and, followed, the Sign in page (titled Sign in), so the composer sits behind a login the token does not pass. The forge pictures are not mounted in my sandbox, so I report no look at them. The three points above come from the diff and its test, which drives the double tap and the queued row at 390 px.
The owner: "if i hit send twice it will send then queue one. client should insta respond and not let me mess up". Send puts the message in the thread at once (Sending…), empties the box and is disabled until the server answers, so a double tap, Enter or a resubmit does nothing more; every send carries an idempotency key, so two requests for one press keep one message (with no script, the form carries its own key). A message sent while Talk answers shows "Queued: sends when this answer ends." with Edit and Drop, never a silent second turn. Proven in Chromium at 390x844 with touch.
🤖 Generated with Claude Code