From ec046411f138c3dd26a72111c6520d2a82d2107d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 8 Dec 2025 20:57:41 +0100 Subject: [PATCH] VoiceWake: skip send chime when nothing to send --- apps/macos/Sources/Clawdis/VoicePushToTalk.swift | 2 +- apps/macos/Sources/Clawdis/VoiceWakeRuntime.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/macos/Sources/Clawdis/VoicePushToTalk.swift b/apps/macos/Sources/Clawdis/VoicePushToTalk.swift index f6180f7fe..303b3a21a 100644 --- a/apps/macos/Sources/Clawdis/VoicePushToTalk.swift +++ b/apps/macos/Sources/Clawdis/VoicePushToTalk.swift @@ -137,7 +137,7 @@ actor VoicePushToTalk { forward = await MainActor.run { AppStateStore.shared.voiceWakeForwardConfig } } - if let chime = self.activeConfig?.sendChime, chime != .none { + if !finalText.isEmpty, let chime = self.activeConfig?.sendChime, chime != .none { await MainActor.run { VoiceWakeChimePlayer.play(chime) } } diff --git a/apps/macos/Sources/Clawdis/VoiceWakeRuntime.swift b/apps/macos/Sources/Clawdis/VoiceWakeRuntime.swift index 0e8e14e28..2755aa824 100644 --- a/apps/macos/Sources/Clawdis/VoiceWakeRuntime.swift +++ b/apps/macos/Sources/Clawdis/VoiceWakeRuntime.swift @@ -275,7 +275,7 @@ actor VoiceWakeRuntime { committed: finalTranscript, volatile: "", isFinal: true) - if config.sendChime != .none { + if !finalTranscript.isEmpty, config.sendChime != .none { await MainActor.run { VoiceWakeChimePlayer.play(config.sendChime) } } await MainActor.run {