Skip to content

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.

Show bare error description for missing input device

gabbef6e0859ce0dc
diff --git a/NotchBuddy/Sources/App/Voice/VoiceEngine.swift b/NotchBuddy/Sources/App/Voice/VoiceEngine.swift
index 4f04d560..f7c3d0a0 100644
--- a/NotchBuddy/Sources/App/Voice/VoiceEngine.swift
+++ b/NotchBuddy/Sources/App/Voice/VoiceEngine.swift
@@ -319,7 +319,10 @@ final class VoiceEngine: ObservableObject {
let e = error as NSError
let msg = "[Voice] pipeline start failed: \(e.domain)/\(e.code) \(e.localizedDescription)"
appendAppLog("nb.log", msg)
- audioError = "\(e.domain)/\(e.code): \(e.localizedDescription)"
+ // "No audio input device" is self-explanatory — show it bare.
+ audioError = (e.domain == "VoiceAudio" && e.code == -1)
+ ? e.localizedDescription
+ : "\(e.domain)/\(e.code): \(e.localizedDescription)"
}
}