Allow typed prompts from armed state
Rolling release / release (push) Successful in 3m26s

This commit is contained in:
2026-09-11 17:36:20 -04:00
parent fcfcc0f6a7
commit 2f8f369f24
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export class JarvisDaemon extends EventEmitter {
async sleep() { this.voice.sleep(); this.setState('SLEEPING'); await suspendQvac().catch((error) => this.emit('Error', 'QVAC_SUSPEND', error.message)); }
say(text) { this.lastReply = String(text); this.emit('Reply', this.lastReply); }
async ask(text) {
this.voice.utterance(); this.setState('THINKING');
this.voice.typedUtterance(); this.setState('THINKING');
try {
const startedAt = Date.now(); const reply = await this.scheduler.run(() => this.harness.ask(text), { lane: 'voice' }); this.telemetry.record('llm', startedAt, { success: true });
this.voice.speak(); this.setState('SPEAKING'); this.lastReply = String(reply || ''); this.emit('Reply', this.lastReply); this.voiceLoop?.speak(this.lastReply).catch((error) => this.emit('Error', 'TTS', error.message)); return reply;