Repository navigation
fix(ios): keep agent narration visible during runs - #156944
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: blocked before merge. Reviewed September 26, 2026, 11:06 PM ET / September 27, 2026, 03:06 UTC (Revision 8). ClawSweeper reviewWhat this changesThe branch projects live narration into shared Apple chat, groups it with tool activity and replies by run, enables iOS agent avatars, and updates native tests and iOS documentation. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. Current main still omits live narration from native chat; the merged web narration and iOS completed-work changes do not replace this native work. The captured PR body says current-head mobile visual captures remain pending. Priority: P2 Review scores
Verification
How this fits togetherThe shared Apple chat UI receives Gateway events and saved transcript history, then renders conversations on iPhone, iPad, and Mac. This change affects how in-progress work is placed and how saved history takes over its display. flowchart LR
A[Gateway run events] --> C[Native chat model]
B[Saved transcript] --> C
C --> D[Run and narration grouping]
D --> E[Apple chat view]
E --> F[iPhone iPad and Mac chat]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs 0, Other +925. Total +925 across 22 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared native response presentation with stable history handoff, accessible completed-work controls, and run-owned output that never crosses an input boundary. Do we have a high-confidence way to reproduce the issue? Yes. Current-main native source discards live preamble items, and the inspected Mac baseline shows work in separate rows; this read-only review did not execute the app. Is this the best way to solve the issue? Yes. A transient projection in the shared Apple chat owner, followed by canonical-history takeover, fits the existing Gateway event contract; mobile visual verification remains outstanding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2e09d9e2e60a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Proof-only workflow for PR #156944. Runs unchanged baseline/candidate application sources against the same loopback Gateway and captures native UI state and process recovery. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: VACInc <[email protected]> Co-authored-by: Solvely-Colin <[email protected]>
Render completed narration inline and replay it after reconnect. Preserve the existing completed-work disclosure, use compact duration text, and enable top-aligned iOS agent avatars. Related: #156926. Requested by @IWhatsskill. Co-authored-by: IWhatsskill <[email protected]>
Mechanical try-keyword placement from pinned SwiftFormat0.63.0 on Xcode27. Production sources remain byte-identical; reuse the 93 passing focused Apple tests from run35949129389. Co-authored-by: IWhatsskill <[email protected]>
Keep native narration, tool activity, and final replies in one correlated response while preserving per-message actions and input scroll anchors. Match tool results across narration within their turn and retire unsaved narration only on settled current history. Resolve overlapping output through its own input boundary, never the latest unrelated input. Preserve main's scroll commands, iPad reading column, prepared streaming views, and history invalidation lifecycle. Related: #156926 and #156944. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Solvely-Colin <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]>
b9ae24a to
75f97b5
Compare
The Dynamic Type guard asserted the exact old bubble condition, not a typography contract. Grouped responses intentionally moved that decision to their presentation owner. Keep the font and composer assertions; native captures and grouping behavior tests cover the response rendering. CI run36287411547 executed1817 shared tests with only this obsolete assertion failing. No production source changes. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Solvely-Colin <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]>
The new response container reported only its final text as its accessibility frame, excluding the visible completed-work disclosure and message actions. Native Mac run 36288843438 reproduced an unhittable disclosure in the correctly scoped window. Match the existing message-container accessibility shape at the response owner; preserve all native interaction assertions. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Solvely-Colin <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]>
|
Landing verification for The shared Apple chat owner now projects completed narration by run/item and groups narration, tool activity, and the answer without crossing input ownership. Canonical history replaces the transient projection. The old view-local tool merger and redundant message copies are removed. The response container also supplies explicit accessibility bounds so completed-work controls remain hittable.
Native captures use real apps against a synthetic loopback Gateway, not a live provider or physical devices. Quick Chat covers history replay and disclosure, not an independent send. Existing independent infrastructure/startup follow-ups remain documented in the body. No protocol, dependency, config, or storage changes. |
|
Merged via squash.
|
* fix(ios): keep agent narration visible during runs Render completed narration inline and replay it after reconnect. Preserve the existing completed-work disclosure, use compact duration text, and enable top-aligned iOS agent avatars. Related: openclaw#156926. Requested by @IWhatsskill. Co-authored-by: IWhatsskill <[email protected]> * style(ios): apply native SwiftFormat result to narration tests Mechanical try-keyword placement from pinned SwiftFormat0.63.0 on Xcode27. Production sources remain byte-identical; reuse the 93 passing focused Apple tests from run35949129389. Co-authored-by: IWhatsskill <[email protected]> * fix(apple): group narration and tool activity by response ownership Keep native narration, tool activity, and final replies in one correlated response while preserving per-message actions and input scroll anchors. Match tool results across narration within their turn and retire unsaved narration only on settled current history. Resolve overlapping output through its own input boundary, never the latest unrelated input. Preserve main's scroll commands, iPad reading column, prepared streaming views, and history invalidation lifecycle. Related: openclaw#156926 and openclaw#156944. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Solvely-Colin <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]> * test(apple): remove obsolete bubble expression source assertion The Dynamic Type guard asserted the exact old bubble condition, not a typography contract. Grouped responses intentionally moved that decision to their presentation owner. Keep the font and composer assertions; native captures and grouping behavior tests cover the response rendering. CI run36287411547 executed1817 shared tests with only this obsolete assertion failing. No production source changes. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Solvely-Colin <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]> * fix(apple): include disclosure controls in response accessibility bounds The new response container reported only its final text as its accessibility frame, excluding the visible completed-work disclosure and message actions. Native Mac run 36288843438 reproduced an unhittable disclosure in the correctly scoped window. Match the existing message-container accessibility shape at the response owner; preserve all native interaction assertions. Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Solvely-Colin <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Solvely-Colin <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: VACInc <[email protected]>
Related: #156926 (merged web inline narration and top-aligned avatars). Builds on the completed-work disclosure from #148002.
What Problem This Solves
Fixes missing native chat narration during active runs and reconnects, and keeps narration, tool activity, and the answer together instead of presenting every update as a separate response.
User Impact
On iPhone, iPad, and native macOS chat, correlated work appears in one response group. iOS shows one top-aligned agent avatar. Completed work remains expandable above the final answer; individual message actions remain available through context menus. Search keeps individual rows addressable, and overlapping runs never borrow another input's ownership.
No Gateway, protocol, dependency, configuration, or storage-schema changes. Current main's scrolling, iPad reading column, streaming rendering, and history-invalidation behavior are preserved.
Why This Change Was Made
Use one transient run/item-owned narration projection and the existing message renderer. Canonical history takes over matching segments; a current, explicitly idle snapshot retires unsaved narration only after pending final output is reconciled. The presentation owner groups known runs, keeps input boundaries separate, and resolves tool results across intervening narration within the same turn/run. Unknown ownership stays separate. The response frame uses the same explicit accessibility shape as the existing message containers, so completed-work disclosures and message actions remain inside its accessible bounds.
Evidence
Updated and green on
217fd2c5ddfce982a4a4280179168cbe500bd3c7. Exact-head CI passed all 20 jobs, including the required CI gate. Merged tomainasb5f3444b442.217fd2c5ddfce982a4a4280179168cbe500bd3c7: grouping, transport replay, completed-work disclosure, transcript rows, and session actions. Suite execution 3.247s; full build/test command 271.40s. The four-case overlap regression passed in 0.081s; current main’s hosted streaming regression also passed. Native SwiftFormat checked all 21 changed Swift files and canonical iOS production SwiftLint passed.git diff --checkand SwiftFormat checks pass. The local changed-gate classifier could not load because this isolated worktree has no dependencies; hosted checks own the full gates.The native captures use real applications and normal UI interaction against a synthetic loopback Gateway. The unchanged model-choice warning comes from the fixture omitting the model catalogue; the displayed 13-second work duration is fixture data, not a timing measurement. They are not physical-device, live-provider, release-package, or signing/TCC proof. Baseline screenshots use the previously published narration candidate; refreshed screenshots demonstrate the added grouping and integrated current-main behavior.
Mac — active response
Before
After
iPhone — active response
iPhone — completed work collapsed
iPad — active response
Before
After
Mac completed work — full window and Quick Chat
Full window: expanded work retains the final reply.
Quick Chat: completed-history replay with work expanded; its existing display options hide tool activity.
Known independent follow-ups
Simulator preparation: one earlier iPad CI job exhausted SimSlim’s documented 10-minute cold-reconfiguration deadline before tests began; the successful sibling iPhone preparation took 329s. No timeout or verification gate was changed. Repeated slow-runner preparation needs infrastructure investigation.
Cold Mac
--chatauto-open: the earlier before/after run showed startup initialization cancelling the pending native open in both revisions; captures use the normal Gateway menu. This PR does not claim to repair automatic window restoration.The existing attachment-only iOS test helper can observe fixture readiness before the connected label renders. The selected narration scenario uses the existing UI-level wait and is unaffected; no attachment-test behavior is changed in this product PR.
Worked on by: @IWhatsskill
Work sessions
View the OpenClaw team session