From 953fb3aff14b343bb499127361c40569b26f15d2 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Mon, 24 Nov 2025 09:41:49 -0800 Subject: [PATCH] wip --- src/phone.ts | 12 ++++-------- src/utils/waiting-sounds.ts | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) 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