Skip to content

fix(iOS): double-tapping Send stops the message it just sent - #176941

Merged
roboclaw-bot merged 2 commits into
openclaw:mainfrom
Marvinthebored:fix/ios-stop-guard-20261019
Oct 26, 2026
Merged

roboclaw-bot merged 2 commits into
openclaw:mainfrom
Marvinthebored:fix/ios-stop-guard-20261019

Conversation

@Marvinthebored

@Marvinthebored Marvinthebored commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Production-timing simulator regression: passes in 16.428 seconds.
  • Composer package checks: 24 tests in 5 suites pass.
  • Startup-status and streamed-reply simulator checks pass.
  • Touched Swift formatting and strict production lint pass.

Before: Stop is immediately active where Send was.

Before: Stop is immediately active

After: the response survives the rapid taps.

Response still running after two taps 410 ms apart

After: a deliberate Stop cancels the response.

Stop disappears after deliberate cancellation

AI-assisted.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Briefly disable and dim Stop when it replaces Send in the shared native chat composer.

Example: An iPhone user taps Send twice, 410 ms apart.

  • Before: The second tap hits Stop and cancels the newly sent response.
  • After: The response continues, and deliberate Stop works after the 700 ms guard.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused interaction repair with native red/green behavior evidence, a resolved prior finding, and no actionable correctness or security defects.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The supplied iPhone 17 Pro simulator trace exercises the shipped app's shared composer at the fixed 700 ms duration: two taps 410 ms apart leave the held response running, and later deliberate Stop cancels it; removing the guard fails the same scenario. Prepared before/after screenshots were inspected. Recordings were unavailable because ffprobe was missing and browser fetches returned Cache miss; the readable native interaction trace independently addresses the prior proof request.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Double-tapping Send accidentally cancels the response that has just started.
Reason: A short, visibly disabled interval prevents the demonstrated accidental cancellation while preserving intentional Stop and the existing staged-voice-note behavior.

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
Reviewed head: 5140dd0a71032e7ed1ebb511e67fd828b596a465

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Shared native Send and Stop selection keeps the original intent (unknown: Renamed-path history shows longstanding shared native send/abort controls; missing historical blobs prevented verifying their exact introduction. The source-verified voice-note repair at 85afb97 intentionally keeps completed recordings abortable.)
  • Existing native Stop tests and readiness helper keeps the original intent (fix(ios): stabilize native release qualification #159890: The existing helper uses Apple's native enabled-state wait with a five-second deadline; the PR retains that mechanism and adjusts Stop consumers for the new interaction guard.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +23, Tests +41. Total +64 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 23 0 +23
Tests 1 46 5 +41
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 69 5 +64

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is logs.

Label justifications:

  • P2: Accidental cancellation interrupts a response and requires resending, with a limited and recoverable interaction trigger.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-19T05:16:11.332Z sha c2751c33028564ce0b8d197e279491d862452e0c :: needs real behavior proof before merge. :: [P2] Remove the production delay override used only by UI tests

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.
@Marvinthebored
Marvinthebored force-pushed the fix/ios-stop-guard-20261019 branch from c2751c3 to 5140dd0 Compare October 20, 2026 14:59
@Marvinthebored

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 21, 2026
@roboclaw-bot roboclaw-bot self-assigned this Oct 26, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Maintainer landing check — existing native proof

Reviewed 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.

Before: immediate Stop control

After — response remains active after the rapid taps.

After: response survives the rapid double tap

After deliberate Stop — the held response is cancelled.

After deliberate Stop: response ends and the normal composer control returns

@roboclaw-bot
roboclaw-bot merged commit dcfafb5 into openclaw:main Oct 26, 2026
115 of 117 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Double-tapping Send on iOS stops the message it just sent

3 participants