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
fix(macos): prevent misplaced Writing Tools button on Sequoia (#936)
Ohualtex27602be64f4b
diff --git a/NotchBuddy/Sources/App/IslandViewContent.swift b/NotchBuddy/Sources/App/IslandViewContent.swiftindex f88489c8..728f1ec7 100644--- a/NotchBuddy/Sources/App/IslandViewContent.swift+++ b/NotchBuddy/Sources/App/IslandViewContent.swift@@ -516,6 +516,7 @@ struct QuestionView: View {.font(.system(size: 12)).foregroundColor(Color(hex: "#F5F6F8")).focused($otherFieldFocused)+ .disableWritingTools().onAppear { otherFieldFocused = true }.onSubmit { commitOtherAndProceed(q: q, qi: qi, isLast: isLast) }.onExitCommand { if qi < showOther.count { showOther[qi] = false } }@@ -1500,6 +1501,7 @@ struct PromptView: View {.textFieldStyle(.plain).font(.system(size: 13)).focused($focused)+ .disableWritingTools().onSubmit { sendMessage() }#if !APPSTORE@@ -5325,3 +5327,20 @@ extension Color {)}}++// MARK: - Writing Tools Compatibility++extension View {+ @ViewBuilder+ fileprivate func disableWritingTools() -> some View {+ #if compiler(>=6.0)+ if #available(macOS 15.0, *) {+ self.writingToolsBehavior(.disabled)+ } else {+ self+ }+ #else+ self+ #endif+ }+}diff --git a/NotchBuddy/Sources/App/IslandWindowController.swift b/NotchBuddy/Sources/App/IslandWindowController.swiftindex 89376441..07b3c243 100644--- a/NotchBuddy/Sources/App/IslandWindowController.swift+++ b/NotchBuddy/Sources/App/IslandWindowController.swift@@ -196,6 +196,8 @@ final class IslandWindowController: NSWindowController {guard let self else { return }if newView == .prompt {self.islandPanel.makeKey()+ } else if self.islandPanel.isKeyWindow {+ self.islandPanel.resignKey()}}@@ -1433,7 +1435,10 @@ final class IslandPanel: NSPanel {var notchWidth: CGFloat = IslandConst.notchWidthvar notchHeight: CGFloat = IslandConst.notchHeight- override var canBecomeKey: Bool { true }+ override var canBecomeKey: Bool {+ let s = AppState.shared+ return s.mode == .expanded && (s.view == .prompt || s.view == .question)+ }override var canBecomeMain: Bool { false }/// Allow panel to sit in the menu bar / notch area — don't let macOS push it down.