Repository navigation
fix: explain when OpenAI voice needs an API key - #204200
hannesrudolph merged 11 commits into
Conversation
… can't cover it The Gateway marks voice providers whose saved sign-in the provider refuses for voice (talk.catalog apiKeyRequired, models.authStatus voiceApiKeyRequired). Talk, read aloud, dictation, recordings and Settings -> Models -> OpenAI show one notice with Configure opening OpenAI's key, instead of raw provider errors.
|
🦞👀 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 provider-specific API-key notices and Configure actions for Read aloud, Talk, Dictation, and failed recordings. Example: A user with only Sign in with ChatGPT clicks Read aloud without an OpenAI speech API key.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains This PR provides useful voice credential recovery guidance. The previous navigation finding is resolved, and no new actionable defects were found; current-head security approval remains required. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherGateway speech and transcription owners report credential readiness and observed failures; Control UI turns those facts into scoped recovery actions, while the transcript owner persists recording failure metadata. flowchart LR
A[Voice action] --> B[Gateway speech and transcription]
B --> C[Existing provider auth policy]
B --> D[Readiness and failure facts]
D --> E[Control UI notices]
D --> F[Transcript metadata]
E --> G[Existing credential settings]
Technical reviewBest possible solution: Ship the scoped recovery guidance through existing speech and model credential settings while retaining the separate SIWC audio capability tracker. Do we have a high-confidence way to reproduce the issue? Current-main error handling and the supplied before screenshot establish the unconfigured-speech error without an actionable credential destination; no target code was executed during this review. Is this the best way to solve the issue? The patch reuses provider policy, readiness, transcript persistence, and existing settings owners, and the latest navigation repair points speech recovery at a credential source synthesis consumes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f1debfde108a. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +531, Tests +209, Other +5. Total +745 across 42 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
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 HistoryReview history (4 earlier review cycles)
Reviewed November 23, 2026, 8:06 PM ET / November 24, 2026, 01:06 UTC (Revision 5). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* feat(ui): point voice to the OpenAI API key when Sign in with ChatGPT can't cover it The Gateway marks voice providers whose saved sign-in the provider refuses for voice (talk.catalog apiKeyRequired, models.authStatus voiceApiKeyRequired). Talk, read aloud, dictation, recordings and Settings -> Models -> OpenAI show one notice with Configure opening OpenAI's key, instead of raw provider errors. * perf(ui): simplify voice notices and fit the chat boot budget * fix(ui): show the Read aloud key notice as chat feedback * fix(ui): bind voice guidance to the pane and recorded outcome * fix(ui): use the selected speech and dictation in Talk mode * fix: avoid shadowing the audio settings binding * fix(ui): use the effective TTS provider for split Talk guidance * fix(ui): keep voice API key guidance beside Read aloud * fix(ui): clarify voice API key guidance * fix(ui): route speech API key help to Text-to-Speech
#204389) ## Result The `check-dependencies` job on `main` passes again. It has been red since #204200 (first red: scheduled run 45319833099 on a21974c). Knip reported a false unused export: ``` Unused exports are not allowed: ui/src/pages/chat/components/chat-read-aloud-status.tsx: RecordingApiKeyNotice ``` ## Cause `RecordingApiKeyNotice` has one real production consumer: `chat-message-bubble-view.tsx` loads it with `lazy(() => import("./chat-read-aloud-status.tsx"), { export: "RecordingApiKeyNotice" })`. Solid selects the export by a string, which Knip cannot see. `config/knip-vite-consumers.mjs` modeled that pattern for exactly one hard-coded loader (`settings-sidebar-lazy.tsx`). Every other lazy named-export loader either had an ignore entry or broke the gate, as this one did. ## Change The consumer model now derives a named import edge from every non-test UI source file that contains a `lazy(() => import("…"), { export: "…" })` loader. A new loader needs no registration, and deleting a loader still removes its edge, so a truly unused export is still reported. ## Evidence - `check-deadcode-exports.test.ts`: 36 passed. The updated case (two loaders in different directories, test files excluded, deleted loader dropped) fails on `main`. - `pnpm deadcode:report` on this head: script, production and full-tree Knip reports all pass. On `main`, the production and full-tree reports fail with the error above. Co-authored-by: Ayaan Zaidi <[email protected]>
openclaw#204389) ## Result The `check-dependencies` job on `main` passes again. It has been red since openclaw#204200 (first red: scheduled run 45319833099 on 1461dee). Knip reported a false unused export: ``` Unused exports are not allowed: ui/src/pages/chat/components/chat-read-aloud-status.tsx: RecordingApiKeyNotice ``` ## Cause `RecordingApiKeyNotice` has one real production consumer: `chat-message-bubble-view.tsx` loads it with `lazy(() => import("./chat-read-aloud-status.tsx"), { export: "RecordingApiKeyNotice" })`. Solid selects the export by a string, which Knip cannot see. `config/knip-vite-consumers.mjs` modeled that pattern for exactly one hard-coded loader (`settings-sidebar-lazy.tsx`). Every other lazy named-export loader either had an ignore entry or broke the gate, as this one did. ## Change The consumer model now derives a named import edge from every non-test UI source file that contains a `lazy(() => import("…"), { export: "…" })` loader. A new loader needs no registration, and deleting a loader still removes its edge, so a truly unused export is still reported. ## Evidence - `check-deadcode-exports.test.ts`: 36 passed. The updated case (two loaders in different directories, test files excluded, deleted loader dropped) fails on `main`. - `pnpm deadcode:report` on this head: script, production and full-tree Knip reports all pass. On `main`, the production and full-tree reports fail with the error above. Co-authored-by: Ayaan Zaidi <[email protected]>
Related to #204128
What Problem This Solves
I can get text replies after choosing Sign in with ChatGPT. When OpenAI voice needs a separate API key, the Control UI can show a provider error or leave me without a next step.
User Impact
I show which API key is needed for Read aloud, Talk, Dictation, and recordings. Read aloud waits for the voice catalog to confirm the missing key before showing the notice. When the check finds no matching missing-key result, I show the provider error.
Configure opens Settings → Communications → Text-to-Speech for Read aloud and split Talk speech output. The existing TTS provider API-key field saves the credential synthesis reads. Transcription continues to open the provider in Settings → Models for the agent in that chat. The picker shares one Configure action when Talk and Dictation need the same key.
Before and after
Why This Change Was Made
I raised the chat startup JavaScript gzip cap from 1,334,623 to 1,335,821 bytes to fit the five voice notices, following the measured-budget approach in #203448. The paired build measured 1,334,559 bytes on main and 1,335,714 bytes with this PR. Both used 21 requests.
Evidence