This commit is contained in:
Corey Johnson 2025-11-24 09:41:49 -08:00
parent 96d10c3df0
commit 953fb3aff1
2 changed files with 5 additions and 9 deletions

View File

@ -271,14 +271,10 @@ const handleAgentEvents = (
break
case "interruption":
if (waitingIndicator.isPlaying) {
log("🤖 User interrupted but doing a tool lookup")
} else {
log("🤖 User interrupted")
await waitingIndicator.stop()
streamPlayback?.stop()
streamPlayback = player.playStream() // Reset playback stream
}
break
case "tool_call":

View File

@ -76,7 +76,7 @@ export class WaitingSounds {
}
async stop() {
log(`🛑 Stopping waiting sounds. Has typingPlayback: ${!!this.typingPlayback}`)
log(`🛑 Stopping waiting sounds. Playing? ${this.playing}`)
if (!this.playing) return
this.playing = false