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.

Reliability batch follow-ups: n8n formatters Swift 6-safe, hook server ends on a dead socket, drop the stray changelog note

Claude4a7162d8898f
diff --git a/NotchBuddy/Sources/App/HookServer.swift b/NotchBuddy/Sources/App/HookServer.swift
index f4ebc860..dcd18947 100644
--- a/NotchBuddy/Sources/App/HookServer.swift
+++ b/NotchBuddy/Sources/App/HookServer.swift
@@ -320,8 +320,11 @@ final class HookServer: @unchecked Sendable {
while true {
let clientFD = Darwin.accept(fd, nil, nil)
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) }
+ // Never end the server on a failed accept (#853); pause unless it was transient.
+ // A listening socket that is gone for good (closed, not a socket) ends the loop.
+ let err = errno
+ if err == EBADF || err == EINVAL || err == ENOTSOCK { break }
+ if err != EINTR && err != ECONNABORTED { usleep(100_000) }
continue
}
// Reject connections from other users (same-UID check)
diff --git a/NotchBuddy/Sources/App/N8nPoller.swift b/NotchBuddy/Sources/App/N8nPoller.swift
index 6b9ba4da..b194e305 100644
--- a/NotchBuddy/Sources/App/N8nPoller.swift
+++ b/NotchBuddy/Sources/App/N8nPoller.swift
@@ -11,13 +11,15 @@ final class N8nPoller: @unchecked Sendable {
private var lastExecutionId: String = ""
private var isFirstLoad: Bool = true
- private static let isoFormatterFractional: ISO8601DateFormatter = {
+ // ISO8601DateFormatter is thread-safe; only read after creation.
+ nonisolated(unsafe) private static let isoFormatterFractional: ISO8601DateFormatter = {
let f = ISO8601DateFormatter()
f.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
return f
}()
- private static let isoFormatterStandard: ISO8601DateFormatter = {
+ // ISO8601DateFormatter is thread-safe; only read after creation.
+ nonisolated(unsafe) private static let isoFormatterStandard: ISO8601DateFormatter = {
let f = ISO8601DateFormatter()
f.formatOptions = [.withInternetDateTime]
return f
diff --git a/changelog/unreleased/linux-flow-pill-hover.md b/changelog/unreleased/linux-flow-pill-hover.md
deleted file mode 100644
index ee5128fe..00000000
--- a/changelog/unreleased/linux-flow-pill-hover.md
+++ /dev/null
@@ -1 +0,0 @@
-Corrigido: a barra de ditado no Linux recolhe os botões ao retirar o mouse, mesmo quando o navegador perde o evento de saída.