Repository navigation
macOS: add realtime Gateway-relay Talk support - #118499
zhilong1115 wants to merge 15 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 23, 2026, 2:48 AM ET / 06:48 UTC. ClawSweeper reviewWhat this changesAdds an opt-in macOS Talk mode that streams microphone audio through a pinned Gateway realtime relay, plays streamed output, and falls back to native speech on failure. Merge readiness⛔ Blocked until real behavior proof is added - 4 items remain Keep open: current main has no macOS Gateway-relay Talk integration, but this draft feature still lacks exact-head physical-Mac proof and explicit product sponsorship for its new persistent opt-in. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togethermacOS Talk normally performs speech recognition, Gateway chat, and native speech playback. This PR adds a locally enabled relay branch that creates a Gateway-owned realtime session and returns to native Talk when startup or runtime recovery fails. flowchart LR
A[Mac microphone] --> B[macOS Talk runtime]
B --> C{Local opt-in and compatible config}
C -->|realtime| D[Pinned Gateway relay]
D --> E[Streamed PCM playback]
D --> F[Recovery decision]
C -->|native| G[Speech recognition and TTS]
F --> G
Decision needed
Why: The PR adds a persistent local setting and a new realtime audio lifecycle rather than repairing an established macOS behavior; source review cannot choose that product direction. Before merge
Agent review detailsSecurityNone. PR surfaceDocs +69, Other +4176. Total +4245 across 18 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the default-off native path, obtain a redacted exact-head physical-Mac relay recording with recovery diagnostics, then land the approved prerequisite stack and macOS integration together. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new macOS capability rather than reporting broken established behavior; its real-world outcome needs device validation rather than a bug reproduction. Is this the best way to solve the issue? Unclear: the pinned-lease and redacted-bootstrap design is coherent in source, but exact-head device proof and a maintainer decision are needed before calling this the best supported macOS path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 33abd6273131. 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 (68 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact-head follow-up at
Focused verification:
An iOS app build was also attempted for the shared protocol change; the local Xcode install lacks the required watchOS 26.5 runtime, so the scheme stopped before app compilation. The iOS conformer was updated directly and the shared/macOS builds compile cleanly. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact-head follow-up: Both P1 findings from the latest review are addressed:
Exact-head verification:
The PR body now distinguishes the earlier real-device normal-turn recording from the later exact-head lifecycle fixes; the recording is not claimed as exact-head recovery proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
2d127af to
57f1379
Compare
|
Rebased onto current The only source conflict was the recent Exact-head local proof:
GitHub now reports the PR mergeable. @clawsweeper re-review |
|
🦞🧹 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]>
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Drain dynamically arriving forced-consult results before terminal completion and validate legacy iOS cancellation responses against the active lifecycle. Co-authored-by: Zhilong Zheng <[email protected]>
|
@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]>
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 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]>
Co-authored-by: Zhilong Zheng <[email protected]>
Co-authored-by: Zhilong Zheng <[email protected]>
Co-authored-by: Zhilong Zheng <[email protected]>
|
@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]>
|
@clawsweeper re-review Exact head moved to |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
#118499 was automatically closed when its stacked base branch was deleted, and its contributor fork does not permit maintainer edits. The narrow macOS-only replacement was #128204. The replacement preserved Zhilong Zheng's co-author credit and mapped the reviewed C layer onto current Landed via squash as 000db97 from prepared source head |
Related: #71195 and #116201
What Problem This Solves
macOS Talk lacked a reusable, bounded Gateway realtime relay path. The original all-in-one branch mixed cancellation ownership, shared Apple audio lifecycle, and macOS product integration into one review surface.
This PR is the macOS-only integration layer over two narrow draft precursors:
Architecture
includeSecrets; native fallback fetches the secret-bearing Talk configuration only when the pinned realtime attempt actually fails.No Gateway/protocol/Web/Android/iOS/shared Apple contract, dependency, config schema, SQLite version, generated locale JSON, or
.xcstringssurface is changed by C.Exact Artifact
262ac6778dcc35101f9ffe3742d03cbb4c4855176667f43c77ce9a003770e173ad751721598a03a4f983fb0e73672bbb1913a9ab7408842f5e4a9591b5aa4be8c157d06398f57679cdd7ad4539351ff2b5aa4be8c157d06398f57679cdd7ad4539351ff2ca4237af761050883e8f69aab87130a59359722d03a96fd12cfa53a94613c6445736c7d1735aaeeab258e80333613ea4133986a17696347355c11ecede777a3bd0ba8c3ba79916e405f17e7bd293f0665a01914f5e77cc98b83de3d185d797295405c86f7d9685f1f3a686f87fe52e51Scope And LOC
Against exact parent B:
+2395/-225+2009/-102+69/-0+99/-0The final secret-boundary repair itself is production
+32/-2and tests+44/-0.Evidence
GatewayConnectionControlTests:24/24TalkModeRuntimeSpeechTests:29/29487/487git diff --check, and exact-head autoreview passed.talk.configrequests carriedincludeSecrets: true.changed=false; subsequent baseline movement is inherited..xcstringschurn.Codex Contract
Personally checked
openai/codex@e1831db7c31ec3ec3a88f29e95cc336858038bad:codex-rs/app-server-protocol/src/protocol/v2/turn.rs:209-212requires thread and turn identity for interruption.codex-rs/app-server/src/request_processors/turn_processor.rs:1414-1453rejects inactive or mismatched turns and acknowledges only after matchingTurnAborted.codex-rs/app-server-protocol/src/protocol/v2/realtime.rs:19-25carries PCM rate, channels, samples, and item identity.codex-rs/core/src/realtime_conversation.rs:2402-2417derives duration from sample count and sample rate.Remaining Gates
No physical-device proof is claimed.
Release Note
macOS: add opt-in Gateway realtime Talk with pinned transport ownership, redacted bootstrap configuration, bounded recovery, and native fallback. Thanks @zhilong1115.