Repository navigation
fix(voice): a refused voice name reaches the person in their language - #5221
Conversation
On the realtime socket, realtimeRefusalText rewrote the server's refusal with hardcoded English per code (realtime_voice_unknown, realtime_key_refused, realtime_not_configured, realtime_unreachable). The server already writes the refusal in the person's own language (voiceNameCallReason, noCallReason) and sends it as the refusal's own words, so the client was throwing that away: a French person read English the server knew how to say. realtimeRefusalText now returns the server sentence unchanged, for every code. The server is the single source of these words. out_of_credits stays a credits cause, never masked as the voice or the network. No fallback-order change. Tests prove the parity on the words the person gets (the emitted note), in French and in English, and that a refusal that only reaches the client as the socket closing on a reason code invents no client text of its own. Red before the fix, green after. Closes #5220 Co-Authored-By: Claude Code <noreply@anthropic.com>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Verdict de relecture, avant fusionVerdict APPROVE du relecteur Porte eclair rejouee par le relecteur dans un worktree a partir de Rouge avant, prouve par le relecteur, avec une precision honnete qui compte : les deux tests nommes par langue etaient deja verts sur le parent, parce que #5179 laissait deja passer une phrase commençant par « No call was placed: » / « Aucun appel : ». Le rouge existe bien, ailleurs et de facon plus large : Fond verifie : le client ne rend plus que ce qu'il recoit, Arbre reellement fusionne revrifie : 12 fichiers de Porte UX : sans objet, ce n'est pas une PR d'interface (aucun composant, aucune feuille de style, 2 fichiers de lib et de test). Reliquat tranche par le relecteur : ticket separe, pas corrige ici, parce que la cause restante est cote serveur et sur une autre surface de test. Le relecteur a etabli qu'aucun issue ouvert ne la couvre, donc un issue est ouvert avec une liste plus longue que celle de l'auteur : Point non bloquant signale : sur le chemin defensif ou un code de refus n'arrive que comme raison de fermeture, trois codes ne recoivent plus leur indice specifique mais la ligne neutre « the server needs an update ». Le relecteur a verifie que ce chemin n'est pas atteint : le serveur envoie la trame puis ferme sans raison ( |
Francais
Sur le socket temps reel,
realtimeRefusalTextreécrivait le refus du serveur avec une chaine anglaise en dur par code (realtime_voice_unknown,realtime_key_refused,realtime_not_configured,realtime_unreachable). Le serveur ecrit deja le refus dans la langue de la personne (voiceNameCallReason,noCallReason) et l'envoie comme ses propres mots : le client jetait donc cette phrase, une personne francophone lisait de l'anglais que le serveur savait deja rendre.realtimeRefusalTextrend desormais la phrase du serveur telle quelle, pour tous les codes. Le serveur devient la seule source de ces mots.out_of_creditsreste une cause credits, jamais maquillee en voix ni en reseau.English
On the realtime socket,
realtimeRefusalTextoverwrote the server refusal with hardcoded English per code. The server already writes the refusal in the person's language (voiceNameCallReason,noCallReason) and sends it as the refusal's own words, so the client threw it away: a French person read English the server already knew how to say.realtimeRefusalTextnow returns the server sentence unchanged, for every code. The server is the single source of these words.out_of_creditsstays a credits cause, never masked as the voice or the network.Re-reviewed tree (part 2): targeted gate replayed on the merged
maintree for thevoice/andtts/files that changed since the reviewed commit740ce16(9 files). Green, no regression: the 6 changed files' tests 171 passed, then the wholevoice/+tts/area 46 files 637 tests passed.Fast gate on the touched files:
npx tsc -b0,npx tsc -p server0,npx oxlint --deny-warnings0,node scripts/check-source-terms.mjs0,python3 scripts/ci/term-guard.py --tree .0 (no vulnerability identifiers), vitest on the touched client file 14 passed. Full suite runs off-Mac.Closes #5220
🤖 Generated with Claude Code