diff --git a/src/phone.ts b/src/phone.ts index 4c54943..cb33fc5 100644 --- a/src/phone.ts +++ b/src/phone.ts @@ -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 - } + log("🤖 User interrupted") + await waitingIndicator.stop() + streamPlayback?.stop() + streamPlayback = player.playStream() // Reset playback stream break case "tool_call": diff --git a/src/utils/waiting-sounds.ts b/src/utils/waiting-sounds.ts index 28881a2..52b8bbe 100644 --- a/src/utils/waiting-sounds.ts +++ b/src/utils/waiting-sounds.ts @@ -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