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.

Merge upstream main into fix/quiet-when-terminal-in-front

Orlando Castañedaba85722469f9
diff --cc NotchBuddy/Sources/App/HookServer.swift
index 5daf675b,bd52a4ed..63081b1d
--- a/NotchBuddy/Sources/App/HookServer.swift
+++ b/NotchBuddy/Sources/App/HookServer.swift
@@@ -627,9 -624,14 +629,14 @@@ final class HookServer: @unchecked Send
case "StopFailure":
RecapStore.shared.stop(sessionId: recapSessionId)
guard sessions.endTurn(pill: agentId, session: sessionId) == .pill else { break }
+ nbLog("StopFailure \(sessionId.prefix(8)) — \(payload.keys.sorted().joined(separator: ", ")): \(Self.stopFailureDetail(payload) ?? "no detail")")
state.updateTask(id: agentId, state: .error)
+ // The error view shows what went wrong (finalLine), not the last thing said before it.
+ if let idx = state.tasks.firstIndex(where: { $0.id == agentId }) {
+ state.tasks[idx].finalLine = Self.stopFailureDetail(payload)
+ }
- SoundEngine.shared.play("error")
- if focused {
+ if !terminalInFront { SoundEngine.shared.play("error") }
+ if focused && !terminalInFront {
expandIfNeeded(to: .error)
} else {
setPillBadge(id: agentId, badge: .error)