Repository navigation
fix(elevenlabs): surface realtime provider error events - #120772
Conversation
|
Codex review: needs changes before merge. Reviewed August 8, 2026, 7:47 PM ET / 23:47 UTC. ClawSweeper reviewWhat this changesThe PR treats ElevenLabs realtime events with a string Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open: its provider classifier fixes the silent-event gap, but newly recognized startup errors produce two terminal error events in Voice Call and the Gateway relay. Priority: P1 Review scores
Verification
How this fits togetherThe ElevenLabs plugin translates websocket frames into realtime-transcription callbacks. Voice Call and the Gateway relay consume those callbacks to notify operators and terminate failed transcription sessions. flowchart LR
A[ElevenLabs websocket] --> B[ElevenLabs plugin]
B --> C{Error before ready?}
C --> D[Shared connection failure]
D --> E[Error callback]
D --> F[Rejected connection]
E --> G[Voice Call and Gateway relay]
F --> G
G --> H[Two terminal error events]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +95. Total +96 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Preserve the shared pre-ready callback-plus-rejection contract, but make startup failure reporting have one owner in Voice Call and the Gateway relay while ready-session callbacks continue to report live errors. Do we have a high-confidence way to reproduce the issue? Yes: source shows that a pre-ready structural error invokes both the shared error callback and the rejected connection path, which both emit terminal errors in Voice Call and the Gateway relay. Is this the best way to solve the issue? No: the plugin-owner classifier is the right place for ElevenLabs event recognition, but this PR does not preserve the one-terminal-outcome invariant across its consumers. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 019dd0e08659. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Punchcard-Session: amber-workshop-workshop-36 * origin/main: (28 commits) perf(doctor): keep bundled doctor contract closures dependency-light (#120698) fix(elevenlabs): preserve repeated committed speech segments (#120792) fix(ai): fence Responses replay metadata (#120777) fix(ai): invalidate stale compaction replay (#120786) fix(telegram): clean up every failed webhook startup phase (#120788) fix(codex): preserve configured MCP tools in scheduled turns (#120366) fix(ui): show dev checkout commit lag in Updates (#120769) fix(agents): repair XML-polluted tool names (#113814) fix(discord): remove only the bot own reactions (#120785) fix(macos): complete ChatGPT subscription setup (#120782) fix(plugins): surface safe administrator install warnings (#120783) fix(release): keep upgrade survivor sessions fresh (#120778) fix(providers): preserve realtime tool-result delivery ownership (#120776) fix(plugins): retain incognito scope for embedded session ownership (#120215) fix(elevenlabs): surface realtime provider error events (#120772) fix(agents): preserve exact steering delivery ownership (#120770) fix(telegram): prevent session-count routing slowdown (#120774) fix(agents): preserve authoritative background process outcomes (#120754) test(process): make Linux adapter wiring portable (#120741) fix(diagnostics-prometheus): send Content-Length on metrics HEAD responses (#120212) ...
What Problem This Solves
Realtime transcription silently ignored documented provider failures such as rate limits, exhausted quota, queue overflow, and throttled commits because their event names do not contain the word error.
Why This Change Was Made
The plugin's existing websocket event owner now recognizes the provider's documented structural error field as well as the previously supported error-named events. Existing connection failure handling and normal transcription events continue through their original paths.
User Impact
Provider failures now surface exactly once with their actionable original message, both before a realtime session becomes ready and after it is active.
Evidence