Repository navigation
feat: use connected Gateway voice in Companion - #1915
roboclaw-bot wants to merge 1 commit into
Conversation
Worked on by: - @PollyBot13 Co-authored-by: PollyBot13 <[email protected]> OpenClaw-Publication: 381b8d19-0116-46ea-9413-a46dfcabb6a2
|
🦞👀 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. What this changesThis PR adds opt-in Gateway speech for Companion previews, Read Aloud, and automatic replies. Example: A connected Gateway has Fish Audio configured, while Companion uses Windows speech locally.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep this PR open: it delivers a useful capability still absent from main, with no definite introduced bug found, but landing remains blocked. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherCompanion's chat coordinator routes speech text through the existing operator connection; the Gateway synthesizes audio, and the existing native playback service plays validated MP3 or WAV bytes. flowchart LR
A[Chat or voice preview] --> B[Chat coordinator]
B --> C[Gateway speech lifetime]
C --> D[Authenticated operator client]
D --> E[Gateway speech provider]
E --> F[Validated audio]
F --> G[Native Windows playback]
Technical reviewBest possible solution: Land the opt-in Gateway route through the existing operator and native playback owners after resolving the recorded landing blockers. Do we have a high-confidence way to reproduce the issue? Main's provider selector and coordinator demonstrate the missing Gateway speech route; supplied current-head Windows observations demonstrate the new route, without executing target code during this review. Is this the best way to solve the issue? Gateway delegation avoids maintaining another provider-specific Windows client, while preserving local node/MCP synthesis and its existing fallback contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ef1df54dfe95. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReviewed October 30, 2026, 3:45 PM ET / 19:45 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Closing as superseded by #1968, which states it supersedes this PR and preserves the original roboclaw-bot attribution. Requested by @vyctorbrzezowski. Branch left in place. |
What Problem This Solves
Companion cannot use Gateway-only speech providers, including Fish Audio. Related: #1702. Replacement for #1889 (feat: use connected Gateway voice in Companion); original unchanged.
User Impact
User impact: opt-in Gateway speech; remote keys and unchanged local node/MCP defaults.
The known microphone playback-muting issue is outside this PR and will be addressed in a separate PR.
Current-head Windows evidence is below. One Tray CI assertion remains unresolved; no merge-readiness claim.
Why This Change Was Made
Reuse authenticated transport/native playback with epoch retirement and no retry/local fallback. Includes App/TestApp crash regression; recovery-only microphone repair excluded.
Evidence
October 30 v2/proof3: head
e8e0c08d873499127556ce387a22c30ae06e4ff3, tree94b0c3e2bcf9681bb5a81365ef100859cf67e942. Prerequisite check and./build.ps1 -NoTrustRepositorypassed all 5 targets. All 33 source hashes and 4 product binaries match across supplements. App SDK 2.6.4; manual source/build/loaded-module association, not signed attestation.V2: native Fish Read Aloud; same-binary repeat human confirmation: "Yes, audible and stopped early." Status cleared/Read Aloud returned. Proof3: real read-only authority, deterministic retirement and expanded-panel Axe below.
Historical only:
1f7d651586a39e376d241f0c78e4ae71619ff8f9+ 4-file local correction; Fish preview/manual/automatic and inward MCP Windows. Before, after.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: targeted Fish/Stop, authority, sampled retirement and live expanded-panel Axe verified; not a whole-pool claim.windows-clean-installer-upgrade: unrun. Settings compatibility below is not signed-installer upgrade proof.Validation
Original CI run 40895316793, attempt 1, not rerun: Shared 4842 pass/8 skip (all 32 GatewaySpeechTests pass); Connection 1700 pass/1 skip; CLI 129 pass; standard accessibility 23/23; ordinary Tray UI 577 pass/35 skip; Functional UI 19/19. All 4 ExistingSpeechProfile_GatewayVoiceIsOptInAndPreservesLocalProvider cases PASS (windows/piper/kokoro/elevenlabs).
Tray: 4752 pass/1 fail:
ChatComposerControllerTests.Dispose_VoiceCancellationCallbackCanWaitForReentrantControllerWork,Assert.True(callbackWorkCompleted), line 1335. Test/controller match base; baseline cause/flakiness NOT proved. CI Gate is not a second independent failure; dependent skips are not passes. Canonical runner had no verdict; current-head Sweeper had no code findings and requested evidence now supplied.Real Behavior Proof
Primary-record excerpts and limits
B (disposable real Gateway): actual hello scopes=[operator.read], both RPCs advertised; issued-device credential, no shared/admin fallback. Allowed openai/WAV 128044 bytes: backend 0->1. Read-only status succeeds; production SynthesizeSpeechAsync=PermissionRequired, backend 1->1; same-identity raw tts.speak=GatewayPermissionRequired, backend 1->1. Production DLL/real handshake/server, not mocked grants or native read-only UI. Final helper hash captured after persistence-tooling fixes; exact earlier helper binary hash absent; product unchanged.
C request 45839a25-d556-4292-be9b-509fc02f5cab, Windows UTC: forwarded 18:44:50.130; persisted opt-out false 18:45:04.130; authentic late ok transport-send 18:45:04.269, unchanged response SHA; socket still open. Restored true 18:45:36.504; ready/no old resume. Positive 4s/660Hz WAV: 64 active/65 above-threshold samples, peak .15259518. Corrected phase: 1215 zero-activity samples; 845 post-delivery over 52.686s, 328 post-restore over 20.451s; zero peaks/query errors. Last sample 18:45:56.955 exceeds original 60s deadline 18:45:50.130; max gap ~92ms. Calibrated target-PID CoreAudio samples, NOT measured Play-call counts/recording; successful transport send, no callback instrumentation. Windows ordering is separate from WSL clock. Invalid first click retained (still on/audio played). Backend calls: protocol control, native calibration, invalid setup, corrected retirement. Provider openai, not repeated Fish.
D: PID48360/HWND0x60175C; toggle ON, all 5 controls + 2 descriptions visible. Axe2.4.2: Passed, 0 violations; unchanged canonical E8 AxeHelper, only existing NameIsInformative, NameExcludesControlType, NameExcludesLocalizedControlType, SiblingUniqueAndFocusable exclusions. No extras. Product EXE SHA256 C7A72C8187A6FDFE34D3873DD8647F89C4B5DC4340A301FACFA9A56A8DDDCA71.
Tooling caveat: early helper save error invoked default logger before private overrides; normal diagnostic append/rotation possible, unverified. No normal logs read/exported; no normal settings/credentials intentionally changed.
Security Impact
Yes, explain the risk and mitigation: Opt-in, epoch/scope checks, bounded audio/timeouts, finite errors; no replay/fallback.Compatibility and Migration
Review Conversations
Worked on by
Work sessions