fix(voice): a missing-key error keeps its wording and hides the microphone hint after a language change (#1599)

The voice error was matched against the translated key message to decide
whether to show the microphone hint, so switching language brought the hint
back and left the message in the old language. The error now carries a
missing-key flag into the status, which words the message at render time.
A controller test covers the language switch, and CURRENT-STATE.md documents
the keyless voice response.
This commit is contained in:
Sameh Khamis committed 2026-11-10 16:11:30 -08:00
1 parent 0687e0e3da
commit f86b8954f6
4 files changed
+48 -6

No files matched your search

+5 -1
View File
@@ -183,7 +183,11 @@ export class RealtimeDiagnostics {
storeErrors(this.errors);
console.error('[GEV Realtime]', record);
this.debugLog('error', record);
this.setStatus('error', formatErrorForDisplay(record));
this.setStatus(
'error',
formatErrorForDisplay(record),
record.code === 'API_KEY_MISSING' ? { missingKey: true } : undefined,
);
return record;
}