Repository navigation
fix(talk): share and bound Apple relay lifecycle - #127232
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 7:07 AM ET / 11:07 UTC. ClawSweeper reviewWhat this changesMoves Apple realtime Talk relay and PCM playback lifecycle into shared OpenClawKit code, with iOS supplying microphone capture and a route-pinned Gateway transport. Merge readinessKeep open. Static source and local Gateway-contract review found no actionable patch defect, but this protected maintainer-authored draft still needs exact-head iOS build and required CI evidence before landing. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherApple Talk captures microphone PCM, relays it through the Gateway, and plays returned PCM to the operator. The shared relay now owns lifecycle, buffering, cancellation, and recovery while each Apple app supplies platform-specific capture and transport. flowchart LR
A[Apple microphone capture] --> B[Shared relay lifecycle]
C[Route-pinned Gateway transport] --> B
D[Gateway Talk events] --> B
B --> E[Bounded PCM queue]
E --> F[Apple audio output]
B --> G[Talk status and recovery]
Before merge
Agent review detailsSecurityNone. PR surfaceOther +2822. Total +2822 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared owner-boundary refactor, run the iOS build and required CI on the current head, then land with the recorded acceptance of the remaining device-proof gap. Do we have a high-confidence way to reproduce the issue? No physical-device reproduction is available on this head. Source and focused regressions provide a clear lifecycle and cancellation path, but do not prove real microphone, speaker, restart, or route-change behavior. Is this the best way to solve the issue? Yes. Moving the shared lifecycle owner into OpenClawKit while retaining iOS-specific capture and route-pinned transport is the cleaner boundary than maintaining parallel Apple relay implementations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9046ecea7303. LabelsLabel 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 (13 earlier review cycles; latest 8 shown)
|
a523228 to
736aa18
Compare
72d0289 to
cae11ff
Compare
|
@clawsweeper re-review Exact head moved to |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
f798494 to
9bf2fba
Compare
cae11ff to
e9055a8
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head moved to |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Zhilong Zheng <[email protected]>
Co-authored-by: Zhilong Zheng <[email protected]>
Co-authored-by: Zhilong Zheng <[email protected]>
262ac67 to
6774fac
Compare
|
Restacked onto landed precursor A.
|
|
@clawsweeper re-review Exact head moved to Maintainer proof disposition: no physical-device iOS microphone, speaker, completed relay-turn, restart, or route-change proof is available. Focused tests, hosted CI, and screenshot artifacts are not live-device proof. I am explicitly accepting that missing optional rank-up evidence for this landing; exact-head required CI and iOS build proof remain mandatory. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Merged via squash.
|
* refactor(talk): move Apple relay into OpenClawKit * fix(talk): bound Apple relay audio lifecycle Co-authored-by: Zhilong Zheng <[email protected]> * fix(talk): acknowledge cancellation playback marks Co-authored-by: Zhilong Zheng <[email protected]> * fix(talk): acknowledge superseded playback marks Co-authored-by: Zhilong Zheng <[email protected]> --------- Co-authored-by: Zhilong Zheng <[email protected]>
What Problem This Solves
The iOS-owned realtime Talk relay could not be reused by macOS and had unbounded or ambiguous audio lifecycle failure paths.
Why This Change Was Made
The canonical Apple relay and PCM player now live in OpenClawKit with platform capture and transport injected by the app. Playback, microphone input, cancellation, and terminal recovery are bounded and owned by the exact relay generation.
User Impact
Exact Artifact
9046ecea730376a4b0f879c1d785108860e33c396774fac2dd9b9d93f34d122d0cd4eb5060012ed79c61d6fda14b367d8cb89f1f6d7c73278358196eac71b3bb826b27e3c662727d9246f233e06366adbe8c794f61a0b4e1104dae3e99c9997f151db2fa94227ee76a78900ae94cfe5b571f2d0672d40d25fa3d058c777272722ef42177c698792ea45ba362f9169be3c43746e0250e5c2cd205e2729c4be08e507dbb1b0ee7ea4774e72f70The migration commit changes mechanically when A moves because it absorbs A's superseded legacy iOS relay implementation and tests; the shared owner remains the sole cancellation state machine. The lifecycle and both mark-repair patch IDs remain stable.
Evidence
40/406/6pnpm ios:build, SwiftLint, SwiftFormat, diff checks, and terminal reviews passed for the reviewed B layer.172/172, forced-consult three-wave, typed legacy-iOS cancellation, and Android action-bound cancellation proof with56/56manager tests.Scope And LOC
Raw reconciliation against exact parent A:
+1090/-1575+2583/-635+136/-0The large deletions are the iOS-to-OpenClawKit ownership move. Native i18n remains source-only with no locale JSON or
.xcstringschurn. The prior 4,220-entry layer-local verification predates inherited repository baseline movement and is not claimed as a new exact-head regeneration.Stack And Credit
Repeated test-fixture construction remains a non-blocking cleanup intentionally deferred to avoid widening this owner boundary. This PR remains draft.