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
Keep the hook server listening after a failed accept or pipe connect
박성준16ebb5a3fd2e
diff --git a/NotchBuddy/Sources/App/HookServer.swift b/NotchBuddy/Sources/App/HookServer.swiftindex d7ef3437..c7bdde97 100644--- a/NotchBuddy/Sources/App/HookServer.swift+++ b/NotchBuddy/Sources/App/HookServer.swift@@ -319,7 +319,11 @@ final class HookServer: @unchecked Sendable {while true {let clientFD = Darwin.accept(fd, nil, nil)- guard clientFD >= 0 else { break }+ guard clientFD >= 0 else {+ // Never end the server on a failed accept (#853); pause unless it was transient+ if errno != EINTR && errno != ECONNABORTED { usleep(100_000) }+ continue+ }// Reject connections from other users (same-UID check)var euid: uid_t = 0var egid: gid_t = 0diff --git a/windows/src-tauri/src/pipe.rs b/windows/src-tauri/src/pipe.rsindex 2a6a1d12..9dbb01bb 100644--- a/windows/src-tauri/src/pipe.rs+++ b/windows/src-tauri/src/pipe.rs@@ -84,6 +84,10 @@ pub fn start(app: AppHandle) {};loop {if server.connect().await.is_err() {+ // A failed instance never connects again (#853): listen on a fresh one.+ if let Ok(fresh) = ServerOptions::new().create(&name) {+ server = fresh;+ }tokio::time::sleep(Duration::from_millis(200)).await;continue;}