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.

fix(macos): keep only the Writing Tools opt-out for #936

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