Repository navigation
fix(ios): allow sending messages during active replies - #168604
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 real behavior proof before merge. What this changesEnables 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.”
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +194, Tests +436, Docs +1. Total +631 across 25 files. Added test files: 0. View PR surface stats
Review metrics
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 (6 earlier review cycles)
Reviewed October 25, 2026, 12:13 AM ET / 04:13 UTC (Revision 7). |
|
@clawsweeper re-review The PR body now includes the published |
|
🦞👀 Re-review progress:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
7f2ad38 to
2644b80
Compare
2644b80 to
0c56c7a
Compare
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
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.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* 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
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
fdad53b1at the public Send boundary:canSendis false andsend()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 stablev2026.10.7.Owner-scoped SwiftLint, pinned SwiftFormat 0.63.1, native localization verification (4,510 entries, unchanged), and
git diff --checkpass. 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 maind730d23ca94c. Exact-head CI is green for1eb7398e5528c82a26a69faeb0f6e016d9e9b1de, 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.swiftfile-length violation and missing@solidjs/vite-pluginin 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.