Repository navigation
fix(elevenlabs): reject blank realtime transcription keys - #108916
Conversation
1fb140b to
a2d45ac
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 20, 2026, 2:55 AM ET / 06:55 UTC. Summary PR surface: Source +3, Tests +18. Total +21 across 4 files. Reproducibility: yes. from source: set Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep one normalized environment-key fallback behavior across all ElevenLabs provider entry points, then rebase the PR and validate the focused readiness and pre-network missing-key paths on the exact merge head. Do we have a high-confidence way to reproduce the issue? Yes, from source: set Is this the best way to solve the issue? Yes. Trimming the environment fallback at the existing resolution points preserves explicit configuration precedence and makes readiness and runtime agree without adding a new setting or duplicate provider mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 34f942e89db0. Label changesLabel justifications:
Evidence reviewedPR surface: Source +3, Tests +18. Total +21 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (5 earlier review cycles)
|
49b00c8 to
3b73dcb
Compare
…d transcription providers
Co-authored-by: RileyJJY <[email protected]>
3b73dcb to
e80d506
Compare
|
Land-ready maintainer verification is complete on narrowed head What changed during maintainer review:
Proof:
Known proof gap: no audio was streamed after connection because the bug is credential selection and pre-network readiness. The live smoke proves valid-key session authentication and connection; the deterministic regression proves blank keys fail before socket construction. |
|
Merged via squash.
|
…08916) * fix(elevenlabs): treat blank env API key as unconfigured in speech and transcription providers * fix(elevenlabs): normalize realtime auth lookup Co-authored-by: RileyJJY <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where a whitespace-only legacy
XI_API_KEYmakes ElevenLabs realtime transcription report itself configured, then forwards the blank value as the WebSocketxi-api-keyheader instead of failing locally as unconfigured.Why This Change Was Made
The realtime transcription provider now uses one credential resolver for both readiness and session creation. It preserves the existing precedence—explicit provider config, the existing profile/
ELEVENLABS_API_KEYresolver, then legacyXI_API_KEY—while normalizing the legacy value before accepting it.The original branch was narrowed during maintainer review:
mainalready has stronger blank-key coverage.User Impact
Whitespace-only legacy keys no longer select a broken realtime provider or reach the network.
isConfiguredreturnsfalse, and direct session creation throws the existingElevenLabs API key missingerror before constructing a WebSocket. Valid configured, profile,ELEVENLABS_API_KEY, and legacyXI_API_KEYcredentials retain their prior precedence.Evidence
Deterministic blank-key regression:
isConfiguredreturnsfalseforELEVENLABS_API_KEY=""andXI_API_KEY=" ".createSessionthrowsElevenLabs API key missingbefore socket construction.Focused provider proof on the final rebased branch:
https://github.com/openclaw/openclaw/actions/runs/29994676478
Real authenticated behavior proof on Node 24 using the production ElevenLabs provider and realtime WebSocket session:
{"connected":true,"errorCount":0}Additional proof:
origin/main: clean, no accepted/actionable findings.e80d5062251ec773c2cb950d935b2afa3060a795.AI-assisted: built with Codex and repaired/verified by maintainers.