Repository navigation
fix(tts): collect all provider errors instead of only the last - #17964
Merged
steipete merged 1 commit intoFeb 16, 2026
Merged
Conversation
When TTS conversion fails, the error message now includes failures from every provider in the fallback chain instead of only the last one tried. Previously, a timeout on the primary provider (e.g. ElevenLabs) would be masked by the final fallback's error (e.g. "edge: disabled"), making it impossible to diagnose the real issue. Before: "TTS conversion failed: edge: disabled" After: "TTS conversion failed: elevenlabs: timeout (30004ms); openai: no API key; edge: disabled"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lastErrorwas overwritten by each failing provider, so the final error message could be misleading (e.g. showingedge: disabledwhen the real issue was an ElevenLabs timeout)lastError: stringtoerrors: string[]in bothtextToSpeechandtextToSpeechTelephonyTest plan
pnpm buildpassespnpm test)Greptile Summary
Changed error collection from
lastError: stringtoerrors: string[]in bothtextToSpeechandtextToSpeechTelephonyfunctions. When multiple TTS providers fail, the error message now includes all provider failures joined with"; "instead of only showing the last one. This prevents misleading error messages (e.g., showing "edge: disabled" when the real issue was an ElevenLabs timeout).Confidence Score: 5/5
${provider}: <description>, and the implementation correctly accumulates and joins all provider errorsLast reviewed commit: 9e4576d
(4/5) You can add custom instructions or style guidelines for the agent here!