fix(frontend): make overlays accessible and wake word opt-in

This commit is contained in:
2026-10-07 09:32:53 -03:00
parent 0c57f7c76d
commit a56e1082e5
12 changed files with 285 additions and 138 deletions
@@ -57,6 +57,7 @@ export interface AppState {
queuePosition: number;
joinDeadline: number;
unlock: boolean;
wakeWordEnabled: boolean;
}
/** Observable application state; React owns rendering, this object owns session lifetime. */
@@ -103,6 +104,7 @@ export class VoiceController {
queuePosition: 0,
joinDeadline: 0,
unlock: false,
wakeWordEnabled: false,
};
}
getSnapshot = () => this.state;
@@ -261,6 +263,12 @@ export class VoiceController {
dismissError() {
this.update({ error: "" });
}
dismissUnlock() {
this.update({ unlock: false });
}
setWakeWordEnabled(wakeWordEnabled: boolean) {
this.update({ wakeWordEnabled });
}
offerAutoStart() {
if (this.autoStarted || this.client || !this.state.configReady || this.state.contextLoading) {
return;
@@ -608,6 +616,7 @@ export class VoiceController {
this.updateLevel(0);
this.update({
status,
wakeWordEnabled: false,
muted: false,
joinDeadline: 0,
unlock: false,