wip
This commit is contained in:
parent
96d10c3df0
commit
953fb3aff1
|
|
@ -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":
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user