Repository navigation
feat: use connected Gateway voice in Companion - #1889
roboclaw-bot wants to merge 4 commits into
Conversation
Worked on by: - @PollyBot13 Co-authored-by: PollyBot13 <[email protected]> OpenClaw-Publication: 288d9bf0-466e-4799-91a9-db561a2d20f5
|
🦞👀 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 changesAdds an opt-in setting that uses the connected Gateway’s speech provider for chat playback and voice previews. Example: A Gateway has Fish Audio configured, and the user selects Read Aloud for “Hello from Companion.”
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: Gateway delegation addresses a concrete capability gap, but the new preview handler prevents the Windows app from compiling. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherCompanion routes chat text through its existing authenticated operator client to Gateway speech RPCs, validates returned audio, and passes it to the existing native player. flowchart LR
A[Chat or voice preview] --> B[Chat coordinator]
B --> C[Speech lifetime owner]
C --> D[Authenticated Gateway client]
D --> E[Gateway speech provider]
E --> F[Validated inline audio]
F --> G[Windows audio player]
Technical reviewBest possible solution: Keep the delegated route and existing playback owner, correct the preview handler’s namespace, and establish native playback and upgrade compatibility before landing. Do we have a high-confidence way to reproduce the issue? Main routes chat speech to local providers; the new preview handler’s namespace error is independently confirmed by exact-head Windows CI annotations. Is this the best way to solve the issue? Gateway delegation avoids duplicating provider clients and credentials, and the added lifetime owner protects distinct cancellation and target boundaries while reusing existing transport and playback owners. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ed1444b0de69. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
LabelsLabel changes:
Label justifications:
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 Reviewed October 27, 2026, 2:28 PM ET / 18:28 UTC. |
Worked on by: - @PollyBot13 Co-authored-by: PollyBot13 <[email protected]> OpenClaw-Publication: ae0b90e9-c2ac-413c-8f9c-814a70d689e1
Co-authored-by: PollyBot13 <[email protected]>
Worked on by: - @PollyBot13 Co-authored-by: PollyBot13 <[email protected]> OpenClaw-Publication: e79fb25b-a416-4826-81a1-05867362a6c2
|
@clawsweeper re-review |
|
Closing as superseded: #1915 replaced this PR, and #1968 now supersedes #1915. Requested by @vyctorbrzezowski. Branch left in place. |
Related: #1702
What Problem This Solves
Companion cannot read chat with speech providers configured only on its Gateway, including Fish Audio.
User Impact
User impact: opt-in Gateway voice; remote keys, unchanged local defaults. Native Shared, mic, retirement and accessibility gaps remain.
Why This Change Was Made
Privacy fix published. CI exposed optional-App casts; 3-line fix + UI test retained, review blocked by server byte limit. Laptop untouched.
Evidence
Historical Windows
c27046c: build 5/5; Tray 4585 passed. Human heard Fish preview/manual/two auto replies; no recording.Before

After

Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: partial. Fish/UI evidence recorded; microphone, precise audible retirement and expanded-panel accessibility remain incomplete.Validation
Published: 32 Shared + 174 Tray passed; privacy red/green; P0-P3 clean. Local UI fix: same 206 passed, review blocked.
Projected-history GitVersion disabled; whitespace clean. Windows CI: UI failed (TestApp cast); Core/Tray passed.
Historical Windows: build 5/5; Tray 4585 passed. Final Shared 0 executed, App Control
0x800711C7; earlier 4676 passed/1 baseline failure/27 skipped. Accessibility 22 passed/1 Sandbox failure; live panel unscanned.Prior Linux full: Shared timeout; Tray 155 failed.
Real Behavior Proof
c27046c(manual binary association). Published:3b73575; UI CI failed.Security Impact
tts.status/tts.speakwith opted-in text.Yes, explain the risk and mitigation: opt-in, authority/epoch checks, bounded payloads/timeouts, safe errors, no replay/fallback.Compatibility and Migration
UseGatewayVoice=falseby default; Gateway preferences unchanged.Review Conversations
Work sessions
Worked on by