Repository navigation
fix: honor configured speech in Control UI - #170343
Conversation
|
🦞👀 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: needs real behavior proof before merge. What this changesThis PR connects Control UI Read aloud, dictation, and split Talk to configured Gateway speech providers and the current chat agent. Example: An operator configures local Whisper transcription, Gateway TTS, and Ollama qwen3:8b with talk.realtime.mode set to stt-tts.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 7 items remain Keep this PR open: it addresses a real, maintainer-approved speech gap, but five source-confirmed defects block merging; the previous discard and credential-readiness findings are fixed. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI captures microphone audio and requests playback; Gateway Talk adapts recordings to the media transcription owner, ordinary chat runs produce answers, and existing speech providers return audio. flowchart LR
A[Control UI microphone] --> B[Gateway Talk relay]
B --> C[Media transcription owner]
C --> D[Ordinary chat submission]
D --> E[Selected agent]
E --> F[Gateway speech provider]
F --> G[Browser audio playback]
Technical reviewBest possible solution: Complete the existing speech-owner integration with agent-scoped transcription, branch-safe chat submission, authoritative output readiness, bounded synthesis, and coordinated playback. Do we have a high-confidence way to reproduce the issue? Current-main source and the linked reports establish that browser Talk ignores configured split speech; source tracing also establishes the listed introduced failures without executing target code. Is this the best way to solve the issue? Reusing Gateway speech, media transcription, and ordinary chat is the right direction, but the integration must preserve those owners' agent scope, branch admission, readiness, text limits, and playback lifecycle. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a59427ccc909. Provenance checked
TestingProof path: shipped entry point. SecurityNeeds attention: Selected-agent credential binding must be repaired before microphone audio can safely follow this new transcription path. EvidenceSecurity concerns:
What I checked:
PR surfaceSource +973, Tests +1827, Docs +62, Other -1. Total +2861 across 64 files. Added test files: 4. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 HistoryReview history (4 earlier review cycles)
Reviewed October 13, 2026, 4:49 AM ET / 08:49 UTC (Revision 5). |
…f-hosted-voice-webchat
…f-hosted-voice-webchat
|
@clawsweeper re-review The reviewed provider-selection, readiness, and capture-authority findings are fixed. Regression tests fail against the previous owners and pass after the repairs; the complete branch has a clean independent Codex review. The PR body records the final local-model/browser proof and its speech-stub limitation. |
What Problem This Solves
Control UI Read aloud, microphone dictation, and configured
stt-ttsTalk ignored the Gateway's speech providers and local chat model.Closes #45508. Closes #113049.
User Impact
Operators can use configured OpenAI-compatible speech services for Read aloud and dictation, with the current chat agent answering split Talk turns. Unconfigured browser behavior and explicit realtime-provider selections remain supported. Escape and Stop discard buffered input and cancel pending transcription. Starting another voice action supersedes existing playback or capture, including pending dictation.
Why This Change Was Made
The UI reuses Gateway TTS, the existing Talk relay/media transcription owner, and normal chat submission. File transcription carries the admitted session's agent and credential context. Split Talk preserves the displayed branch and requires input/output readiness. Long answers use bounded speech requests.
Three optional additions are maintainer-approved:
discardontalk.session.close,MediaUnderstandingProvider.isAudioConfigured(context), andsessionKeyontalk.catalog. Existing clients/providers retain their behavior when these additions are absent. Catalog session targets use existing session authorization; selected-agent STT/realtime readiness matches execution. Speech readiness remains on shared synthesis configuration because the existing speech RPCs have no session target. Settings keeps the unscoped catalog call. No new operator configuration, dependency, or transcript store.Thanks @mcfex and @mike-nott for reporting these workflows.
Evidence
Head
2c87586fb6b20efe5c7faa54bd88ca658c3665b2, including mainfad1c5fa15b5d9d31a050646bdbd27beefa4a5a6. The merge preserves main's realtime preparation reuse and operator-read gate.sessions.resolverejection. Composer/dictation: 43 passed in 13.48 seconds.pnpm buildpassed on this head in 1,328.52 seconds, including all declarations. Protocol/native generation, SDK export checks, scoped production/test types and lint, complete core type-boundary check, and all seven baseline ratchets passed.qwen3:8b: passed in 23.23 seconds. The current-key catalog, microphone transcription, local model reply and both decoded Gateway speech clips were verified. Split Stop and dictation Escape passed live cancellation in 9.30 seconds, with no late transcript, chat or TTS.CI run 38447134368 has inherited wrapper-inventory failures in
test/scripts/eager-import-closure.test.tsandtest/scripts/pr-wrapper-source-closure.test.ts. Clean final-head and exact-base (fad1c5fa15b5d9d31a050646bdbd27beefa4a5a6) replays both produce the same three failures and 17 passes, in 25.04 and 28.61 seconds. The inventory misses five display/media helper files; the relevant inventory, tests and sources are unchanged from the base. An Android emulator-image unpacking failure was retried once; the native Access check then passed. The separate Security Review workflow could not complete: both the original attempt and one infrastructure retry exhausted their recovery budget on GitHub jobs API timeouts. That gate remains incomplete; it is not counted as a security approval.The earlier Bun hang was PR-caused: the Custodian fixture omitted its runtime-config owner and another fixture initialized lifecycle state at module scope. Both are repaired, and the complete suite finishes. The first follow-up CI also caught two test issues—core-only type-graph placement and an unprepared catalog session fixture—which are repaired and verified against its exact main base.
Limits: Chromium on macOS with synthetic microphone and speech service; no speech-quality or Safari claim. Maintainer-authorized proof-only holds: live requester-revocation and latest-stable upgrade proof are not supplied; HTTP/CLI authority regressions pass.
Production: +2,032 / −785 lines. Tests: +2,837 / −90. Docs: +68 / −2. Two obsolete baseline entries removed. Growth implements file-STT adaptation and browser capture/playback lifecycles while preserving existing speech, credential, session and chat ownership. No prompt/tool-text change; token delta 0.