Repository navigation
feat(apple): show live subagent activity in chat - #121815
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 10, 2026, 10:54 PM ET / August 11, 2026, 02:54 UTC. ClawSweeper reviewWhat this changesThe PR renders live subagent task activity and edit-diff counters in the shared macOS and iOS chat transcript. Merge readinessKeep this maintainer-owned draft open: the Apple task fold has three correctness gaps that can hide valid activity or retain stale activity after recovery. Priority: P2 Review scores
Verification
How this fits togetherApple chat clients receive Gateway task broadcasts and task-list snapshots for the selected conversation. The shared chat view model reduces those inputs into transient rows displayed above pending tool activity on macOS and iOS. flowchart LR
A[Gateway task registry] --> B[Task events and snapshots]
B --> C[Apple chat transport]
C --> D[Shared activity state]
D --> E[Session scope and recovery]
E --> F[macOS chat]
E --> G[iOS chat]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceOther +758. Total +758 across 22 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the Control UI task-reconciliation shape in the shared Apple owner: match all Gateway session keys, merge a bounded recent snapshot with an active-task snapshot, and replace stale recovery state while preserving events received during the fetch. Do we have a high-confidence way to reproduce the issue? Yes—source establishes the paths: feed a child- or owner-scoped task, or retain a running task then deliver a restore/sequence-gap snapshot that omits it; the current fold drops the former and preserves the latter. Is this the best way to solve the issue? No—the current fold is not the best solution because it diverges from the Gateway’s three-key scope and Control UI’s authoritative snapshot-plus-event recovery model. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9ae35833759a. 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
|
|
Maintainer landing decision: the current head ClawSweeper
The maintainer also accepts that screenshots/video remain deferred to the series' live-proof pass, as documented in the PR body. Exact-head required CI is green. |
|
Merged via squash.
|
* feat(apple): show live subagent activity in chat * chore(apple): refresh native localization inventory
Related: #121549
Related: #121528
Web sibling: #121840
What Problem This Solves
The native macOS and iOS chat transcript did not show current-session subagent progress, even though the Gateway now publishes live task activity and edit counters. Operators had to leave the conversation to understand what parallel subagents were doing.
Why This Change Was Made
The shared Apple chat model now consumes the same task lifecycle and streamed edit-diff contracts as Control UI. It owns current-session filtering, initial task-list hydration, last-seen activity retention, 60-second terminal expiry, five-row overflow, and pending edit counters in one cross-platform state fold. Quick Chat remains unchanged because its empty display options hide tool activity.
User Impact
macOS and iOS users can see parallel subagents working directly in the live transcript, including their latest activity and cumulative diff counts. Rows flip to finished, failed, or cancelled without losing the last useful detail, and iOS background tasks prefer fresh activity over an older milestone.
Evidence
swift test --package-path apps/shared/OpenClawKit --parallel— 1,332 tests passed.swift build --package-path apps/macos --product OpenClaw --configuration release— passed.node scripts/check-changed.mjs— passed via the approved local fallback after remote capacity was unavailable.pnpm native:i18n:verify— passed after refreshing the canonical native source inventory.