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/shared-pill-name

Orlando Castañeda555477ade6e8
diff --cc NotchBuddy/Sources/App/HookServer.swift
index 3b7f01ac,bd52a4ed..9816cfb0
--- a/NotchBuddy/Sources/App/HookServer.swift
+++ b/NotchBuddy/Sources/App/HookServer.swift
@@@ -622,10 -623,13 +624,15 @@@ final class HookServer: @unchecked Send
case "StopFailure":
RecapStore.shared.stop(sessionId: recapSessionId)
- guard sessions.endTurn(pill: agentId, session: sessionId) == .pill else { break }
+ let failScope = sessions.endTurn(pill: agentId, session: sessionId)
+ applyDisplayOwner(pill: agentId)
+ guard failScope == .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 {
expandIfNeeded(to: .error)