Repository navigation
fix(iOS): double-tapping Send stops the message it just sent - #176941
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesBriefly disable and dim Stop when it replaces Send in the shared native chat composer. Example: An iPhone user taps Send twice, 410 ms apart.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current native composer bug; the prior test-only override is removed, the supplied interaction trace addresses the earlier proof request, and no actionable defects remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared SwiftUI composer renders Send or Stop from chat view-model state and forwards accepted actions to the existing send and abort owners. flowchart LR
A[Native chat input] --> B[Shared composer]
B --> C[Send action]
C --> D[Active response]
D --> E[Guarded Stop control]
E --> F[Existing abort owner]
Technical reviewBest possible solution: Keep the bounded guard in the shared composer and retain the native regression proving accidental taps are ignored while deliberate cancellation still works. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the immediate Send-to-Stop transition, and the contributor's counterfactual native UI trace reproduces cancellation without the guard; no target code was executed during this review. Is this the best way to solve the issue? The view-local guard addresses the actual tap target transition without changing send, run ownership, or abort transport logic, and its scoped state is a small complete fix. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 73601c86e785. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +23, Tests +41. Total +64 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 20, 2026, 9:20 PM ET / October 21, 2026, 01:20 UTC (Revision 2). |
Stop replaces Send under the finger when a run starts, so the second tap of a double tap landed on Stop. Stop is now dimmed and inert for 700 ms after it appears.
c2751c3 to
5140dd0
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Maintainer landing check — existing native proofReviewed head: 5140dd0. The bounded guard belongs to the shared native Stop presentation, leaving send/abort transport ownership unchanged. It also applies to native macOS chat, not the web Control UI/Dashboard; every newly appearing Stop gets the 700 ms disabled/dimmed interval. No new macOS gesture run is claimed. The contributor's production-timing native trace records independent taps 410 ms apart: guarded response survives, later deliberate Stop cancels; removing the guard fails that same scenario. Existing composer/startup/voice-note results are reused, not relabelled as fresh maintainer execution. Independent source review found no P0–P2 defect; current main preserves the relevant Stop and draft/voice-note branch contracts. No source changes or CI reruns were made for this landing check. The following are inspected, cropped/resized derivatives of the contributor's existing simulator captures, with the model selector redacted. They are not new screenshots or a new native execution. Before — Stop is immediately available where Send was. After — response remains active after the rapid taps. After deliberate Stop — the held response is cancelled. |
|
Merged via squash.
|
…w#176941) Prevent the replacement Stop button from accepting an accidental second Send tap for its first 700 ms, while retaining deliberate cancellation and the existing abort owner. Preserve the shared native composer path, view-bound task cancellation/reset and voice-note behavior. Existing native production-timing red/green proof is retained; the web Control UI is unchanged. Co-authored-by: Solvely-Colin <[email protected]> Co-authored-by: Marvinthebored <[email protected]>



Closes #176940
What Problem This Solves
Fixes a response being stopped immediately after sending when Send is double-tapped on iOS.
User Impact
A rapid double tap on Send leaves the response running. A deliberate Stop tap works once the brief guard expires.
Why This Change Was Made
Stop appears in the spot Send occupied, so the second tap could cancel the response. Stop is dimmed and ignores taps for a fixed 700 ms whenever it appears.
Evidence
Maintainer source review and inspected, sanitized screenshot derivatives. The guard is shared native behavior, including native macOS chat; web Control UI/Dashboard is unchanged. Existing contributor native runs are reused, not a new maintainer device or Mac gesture run.
Behavior evidence
The native simulator test sends two independent taps 410 ms apart. With the fixed 700 ms guard, the response keeps running; a deliberate Stop tap later cancels it. The same test without the guard cancels the response on the second tap and fails.
Simulator recording · Red/green runtime trace
On a real iPhone at the shipped 700 ms guard: after Send, Stop appears dimmed for about 0.7 s, then turns active, and the response keeps running. iPhone recording
Before: Stop is immediately active where Send was.
After: the response survives the rapid taps.
After: a deliberate Stop cancels the response.
AI-assisted.