Skip to content

fix(ios): allow sending messages during active replies - #168604

Merged
steipete merged 6 commits into
openclaw:mainfrom
cavit99:fix/ios-busy-chat-send
Oct 25, 2026
Merged

steipete merged 6 commits into
openclaw:mainfrom
cavit99:fix/ios-busy-chat-send

Conversation

@cavit99

@cavit99 cavit99 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #150695

What Problem This Solves

Fixes: typing a follow-up during a native iOS reply replaces Stop with a disabled Send button, leaving the draft unusable until the reply finishes.

User Impact

Text remains sendable during a reply. Tapping Send uses the Gateway’s configured queue behavior; holding Send offers the other action when the default is Queue or Steer, or both choices when no single opposite is known. Attachments, session resets, and compaction still wait for the active reply.

Why This Change Was Made

Follow-ups use the existing durable outbox, so they preserve FIFO ordering, route ownership, session-setting expectations, and the current reply’s stream and tools. A per-message Queue/Steer choice survives reconnect without changing the session default.

The additive native outbox v10 migration leaves older queued drafts on their original Gateway-default behavior. Explicit choices are protected from older clients that cannot encode them; those drafts stay available for review instead of silently sending with a different intent. The Gateway schema is unchanged.

Original contribution by @cavit99; contributor commits are retained.

Evidence

The restored-active-run regression fails on main fdad53b1 at the public Send boundary: canSend is false and send() rejects the draft. On the candidate, that regression and all 161 focused tests across busy sending, outbox delivery, attachment admission, run grouping, wire encoding and database upgrades pass under an OS sandbox (private HOME/state; outbound network and Keychain access denied).

The upgrade test constructs the actual v9 database used by latest stable v2026.10.7, then opens it through the current database owner. It checks text and attachment preservation, routing and session settings, FIFO order, and nil queue mode for existing drafts. The v9→v10 upgrade test passes; the source migrations through v9 match stable v2026.10.7.

Owner-scoped SwiftLint, pinned SwiftFormat 0.63.1, native localization verification (4,510 entries, unchanged), and git diff --check pass. Independent Codex review found no actionable P0–P2 defects in the final patch. Final-head ClawSweeper review likewise reports no code findings; its remaining requests concern fresh native-app/Gateway/model and full app-upgrade proof, which are not claimed here. The actual stable-v9 database upgrade is covered by the passing test above. All 161 focused tests also pass after integrating main d730d23ca94c. Exact-head CI is green for 1eb7398e5528c82a26a69faeb0f6e016d9e9b1de, including native iOS screenshot capture, Android tests/accessibility, native dead-code scans and the CI gate. macOS Swift and iOS full-build test lanes were skipped by the ordinary-PR plan; the focused shared Swift tests above were run locally.

The broader local changed-file check passed its static guards but stopped on an unchanged DashboardManager.swift file-length violation and missing @solidjs/vite-plugin in the local UI dependency graph. Those are local limitations, not passing broad-suite evidence.

The original change was 807 changed lines; this revision is 799. Production Swift is +262/−71 (net +191); tests are +449/−13 (net +436), plus three generated localization lines and one docs line. The retained production growth carries durable intent through the existing store, route leases, adapters and composer.

Prior-head contributor proof used native iOS simulator apps, SQLite and a synthetic Gateway. It included an in-place upgrade from v2026.9.8, queued text and image replay, and before/after captures. This is historical evidence, not a fresh device run of the integrated head. This validation run is limited to isolated native tests; no fresh device run or full in-place app upgrade is claimed.

Before: Send disabled during a reply After: draft remains sendable
Original composer with a disabled Send button during a response Fixed composer with an enabled Send button during a response
Per-message alternative Durable intent in the existing delivery footer
Queue default: holding Send offers Steer now Explicit Steer and Queue choices in delivery status

@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: ios App: ios app: macos App: macos size: L labels Oct 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Enables native text follow-ups during active replies and preserves optional per-message Queue or Steer choices through durable delivery.

Example: While a Lisbon itinerary reply is running, type “Add a stop for coffee.”

  • Before: The composer displays a disabled Send button.
  • After: Send uses the Gateway default; holding Send offers an explicit Queue or Steer alternative.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A coherent patch with useful UI evidence and focused regression coverage, held below merge readiness by incomplete product and app-upgrade proof.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Typing during a native reply replaces Stop with a disabled Send control, preventing follow-up submission.
Reason: The patch restores an actionable composer using existing Gateway capabilities; the current feature-owner repair explicitly retains the bounded Queue/Steer direction.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open: current main still blocks active-reply follow-ups, and this patch provides useful, focused work with no actionable code finding.

Priority: P2
Reviewed head: 1eb7398e5528c82a26a69faeb0f6e016d9e9b1de

Before merge

  • Add real behavior proof - Inspected simulator screenshots demonstrate Send availability, the alternative-action menu, and intent footers through the native UI, but use a synthetic Gateway; supply redacted recording or logs showing real Gateway/model handling of default, Queue, and Steer follow-ups while the original reply continues, removing IPs, keys, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Provide a native-app run against an isolated real Gateway, agent, and model, plus an in-place upgrade from v2026.10.7 preserving queued text, images, routing, settings, and replay.
Agent review details

How this fits together

The shared Swift composer captures drafts in the existing SQLite outbox, delivers them through gateway-bound native transports, and reconciles delivery against canonical history.

flowchart LR
A[Native composer] --> B[Shared send admission]
B --> C[SQLite outbox]
C --> D[Route-bound native transport]
D --> E[Gateway chat send]
E --> F[Canonical history]
F --> G[Native transcript]
Loading

Technical review

Best possible solution:

Retain the existing outbox as the single delivery owner and complete the required product and upgrade validation.

Do we have a high-confidence way to reproduce the issue?

Current-main send admission directly explains the reported disabled Send state, and the supplied before screenshot agrees; no target code was executed during this review.

Is this the best way to solve the issue?

The patch uses the existing durable outbox, routing fences, and Gateway queue-mode contract without introducing a competing delivery owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against dfcb2469b18a.

Provenance checked

  • Native send admission changes intended behavior with a stated reason (1ca6b6f: Unified chat and voice work consolidated admission and asynchronous ownership; this commit carries the blocking condition, without establishing its earliest origin.)
  • Route-bound durable delivery keeps the original intent (06789ca: Prevent queued drafts from being lost, duplicated, or silently replayed to another gateway or agent.)
  • Persisted settings and mixed-client protection keeps the original intent (5dd4c6e: Make composer settings authoritative for admitted sends and protect durable delivery from clients that cannot preserve them.)
  • Active response grouping keeps the original intent (b5f3444: Keep narration, tools, and answers grouped under their own input without borrowing ownership from overlapping runs.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit bdf71d7 adds apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatTranscriptCache.swift:434 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: bdf71d7d98b6; files: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatTranscriptCache.swift)
  • Colin Johnson: Raw commit 5dd4c6e adds apps/shared/OpenClawKit/Sources/OpenClawChatUI/ClientDatabases+StateMigrations.swift:143 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5dd4c6e3b087; files: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ClientDatabases+StateMigrations.swift)

PR surface

Source +194, Tests +436, Docs +1. Total +631 across 25 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 19 265 71 +194
Tests 5 449 13 +436
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 25 715 84 +631

Review metrics

Metric Value Why it matters
Production versus regression coverage Production Swift +262/−71; tests +449/−13 Growth carries persisted intent through existing owners and covers distinct admission, ordering, rendering, transport, and migration failures.

Labels

Label changes:

  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: The native composer blocks follow-ups during active replies, but users can send after the reply finishes.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • 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.

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 (6 earlier review cycles)
  • reviewed 2026-10-10T19:06:08.501Z sha 6f96a96d74d168008bcc481e9ca2becae06cf15d :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-10T20:11:37.172Z sha 6f96a96d74d168008bcc481e9ca2becae06cf15d :: blocked before merge. :: none
  • reviewed 2026-10-10T21:18:17.022Z sha 6f96a96d74d168008bcc481e9ca2becae06cf15d :: blocked before merge. :: [P2] [P2] Remove the superseded route-lease constructors and aliases | [P2] [P2] Refresh the native localization source inventory
  • reviewed 2026-10-11T00:11:45.254Z sha 7f2ad38f95a116409c1ca37c842330e1996434c4 :: blocked before merge. :: none
  • reviewed 2026-10-11T00:47:06.113Z sha 7f2ad38f95a116409c1ca37c842330e1996434c4 :: blocked before merge. :: none
  • reviewed 2026-10-22T19:24:40.119Z sha 0c56c7a :: needs real behavior proof before merge. :: none

Reviewed October 25, 2026, 12:13 AM ET / 04:13 UTC (Revision 7).

@cavit99

cavit99 commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The PR body now includes the published v2026.9.8 source-app upgrade to the unchanged reviewed head, the failing released busy-send regression, preserved queued text/image and app state, real native transport replay, and retry/reopen proof. Please reassess the behavior and data-compatibility proof; maintainer acceptance of the native outbox v10 design remains pending.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed 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. labels Oct 10, 2026
@cavit99
cavit99 marked this pull request as ready for review October 10, 2026 20:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-10T20:35:54.978598Z 6f96a96 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@cavit99
cavit99 force-pushed the fix/ios-busy-chat-send branch from 7f2ad38 to 2644b80 Compare October 17, 2026 19:29
@cavit99
cavit99 force-pushed the fix/ios-busy-chat-send branch from 2644b80 to 0c56c7a Compare October 22, 2026 08:19
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Oct 22, 2026
@roboclaw-bot roboclaw-bot added the clawtributors PR from a clawtributor label Oct 22, 2026

cavit99 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review current head 0c56c7a9b09e4e88fe6ad84700ab7111ab119087. All four commits are patch-identical after rebase; CI, iOS screenshots and applicable security checks pass. The PR body now explains Android parity and overlapping work in #132689/#150838. Maintainer acceptance of the UX and native outbox v10 migration remains pending.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
Integrate main and qualify durable Queue/Steer sends with a restored-run regression and a real v9 outbox migration fixture. Keep attachments and session mutations waiting for active replies.
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 25, 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 25, 2026
@steipete
steipete merged commit bda23f6 into openclaw:main Oct 25, 2026
102 of 105 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
* fix(ios): allow text follow-ups during active chat runs

* fix(ios): show only the alternate busy send action

* fix(ios): preserve existing delivery status wording

* fix(ios): complete busy-send contributor checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios app: macos App: macos clawtributors PR from a clawtributor docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: iOS composer disables Send for typed drafts during active runs

3 participants