A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
voice: show and sound that "OK Coucou" was heard, 5 s to start the sentence
Claudecea7c55e1479
diff --git a/NotchBuddy/Resources/Localizable.xcstrings b/NotchBuddy/Resources/Localizable.xcstringsindex c16542b2..d1dfc2d8 100644--- a/NotchBuddy/Resources/Localizable.xcstrings+++ b/NotchBuddy/Resources/Localizable.xcstrings@@ -24451,6 +24451,71 @@}}}+ },+ "voice.caption-listening": {+ "extractionState": "manual",+ "localizations": {+ "ar": {+ "stringUnit": {+ "state": "translated",+ "value": "أنا أستمع…"+ }+ },+ "bn": {+ "stringUnit": {+ "state": "translated",+ "value": "শুনছি…"+ }+ },+ "en": {+ "stringUnit": {+ "state": "translated",+ "value": "Listening…"+ }+ },+ "es": {+ "stringUnit": {+ "state": "translated",+ "value": "Te escucho…"+ }+ },+ "fr": {+ "stringUnit": {+ "state": "translated",+ "value": "Je t’écoute…"+ }+ },+ "hi": {+ "stringUnit": {+ "state": "translated",+ "value": "सुन रहा हूँ…"+ }+ },+ "id": {+ "stringUnit": {+ "state": "translated",+ "value": "Mendengarkan…"+ }+ },+ "pt-BR": {+ "stringUnit": {+ "state": "translated",+ "value": "Estou ouvindo…"+ }+ },+ "ru": {+ "stringUnit": {+ "state": "translated",+ "value": "Слушаю…"+ }+ },+ "zh-Hans": {+ "stringUnit": {+ "state": "translated",+ "value": "我在听…"+ }+ }+ }}},"version": "1.0"diff --git a/NotchBuddy/Sources/App/IslandWindowController.swift b/NotchBuddy/Sources/App/IslandWindowController.swiftindex 3e623ede..716db884 100644--- a/NotchBuddy/Sources/App/IslandWindowController.swift+++ b/NotchBuddy/Sources/App/IslandWindowController.swift@@ -290,7 +290,6 @@ final class IslandWindowController: NSWindowController {#if !APPSTORElet screen = IslandWindowController.islandScreen()VoiceCaptionManager.shared.show(on: screen, notchHeight: AppState.shared.notchHeight)- VoiceBrain.shared.prewarmSession()#endif}}@@ -312,7 +311,11 @@ final class IslandWindowController: NSWindowController {let isDirect = (note.object as? String) == "direct"Task { @MainActor [weak self] in// Genuine wake phrase (not programmatic re-listen) → clear any pending question- if !isDirect { VoiceActionRunner.shared.pendingQuestion = nil }+ if !isDirect {+ VoiceActionRunner.shared.pendingQuestion = nil+ // The island stays compact now: the tick says "I heard OK Coucou".+ if AppState.shared.soundEnabled { SoundEngine.shared.play("tick") }+ }self?.fsm.voiceWoke()}}diff --git a/NotchBuddy/Sources/App/Voice/VoiceCaptionManager.swift b/NotchBuddy/Sources/App/Voice/VoiceCaptionManager.swiftindex 8b44c4e3..232028f1 100644--- a/NotchBuddy/Sources/App/Voice/VoiceCaptionManager.swift+++ b/NotchBuddy/Sources/App/Voice/VoiceCaptionManager.swift@@ -174,7 +174,10 @@ struct VoiceCaptionView: View {@ObservedObject var state: VoiceCaptionState/// While the mic is open: what I am saying, live. Afterwards: what I said + the answer.- private var heard: String { state.isListening ? state.liveLine : state.userLine }+ private var heard: String {+ guard state.isListening else { return state.userLine }+ return state.liveLine.isEmpty ? String(localized: "voice.caption-listening") : state.liveLine+ }private var answer: String { state.isListening ? "" : state.responseLine }var body: some View {diff --git a/NotchBuddy/Sources/App/Voice/VoiceEngine.swift b/NotchBuddy/Sources/App/Voice/VoiceEngine.swiftindex 9e26395e..6496773f 100644--- a/NotchBuddy/Sources/App/Voice/VoiceEngine.swift+++ b/NotchBuddy/Sources/App/Voice/VoiceEngine.swift@@ -87,6 +87,7 @@ final class VoiceEngine: ObservableObject {/// Initial silence timeout for the current direct-listen session.private var directInitialTimeout: TimeInterval = 3.0+ private static let wakeFirstWordTimeout: TimeInterval = 5.0private static let silenceTimeout: TimeInterval = 1.5private static let commandMaxTime: TimeInterval = 20.0@@ -513,6 +514,9 @@ final class VoiceEngine: ObservableObject {isListeningForCommand = truecommandTranscript = ""lastWordCount = 0+ // After "OK Coucou", leave time to start the sentence (the island no longer+ // opens, the caption shows "Je t'écoute…" instead). 3 s was too short.+ directInitialTimeout = Self.wakeFirstWordTimeoutaudio?.bypassVAD = trueduckMusic()appendAppLog("nb.log", "[Voice] wake")@@ -531,6 +535,9 @@ final class VoiceEngine: ObservableObject {commandTranscript = commandlet wc = command.split(separator: " ").countif wc > lastWordCount {+ // Load the on-device model once the sentence has started, not at the wake+ // word: loading it at the same moment slowed speech recognition down.+ if lastWordCount == 0 { VoiceBrain.shared.prewarmSession() }lastWordCount = wcresetSilenceTimer()let trimmed = command.trimmingCharacters(in: .whitespaces)