Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: open links via NSWorkspace in non-activating notification panel

Louis Beaumont369670711ebe
diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
index 7a27e1456..e7ca07109 100644
--- a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
+++ b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
@@ -301,6 +301,12 @@ struct NotificationContentView: View {
)
.shadow(color: .black.opacity(0.15), radius: 20, x: 0, y: 4)
.shadow(color: .black.opacity(0.05), radius: 4, x: 0, y: 1)
+ // Override link handling — SwiftUI's default openURL doesn't work
+ // in non-activating panels. Use NSWorkspace to open links directly.
+ .environment(\.openURL, OpenURLAction { url in
+ NSWorkspace.shared.open(url)
+ return .handled
+ })
}
private func sendActionJson(_ json: String) {