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: deeplink notification actions emit to main window's DeeplinkHandler

Louis Beaumontc1899146c0bd
diff --git a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
index 13eb459b8..8d05b2e34 100644
--- a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
+++ b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
@@ -124,19 +124,17 @@ export default function NotificationPanelPage() {
}
case "deeplink": {
if (actionObj.url) {
- // Use Tauri shell open for custom schemes, invoke for internal navigation
if (actionObj.url.startsWith("screenpipe://")) {
- try {
- await invoke("show_window", { window: "Main" });
- } catch {
- // fallback
- }
+ // Emit to main window's DeeplinkHandler which knows how to
+ // route screenpipe:// URLs (timeline, frame, settings, etc.)
+ await emit("deep-link-received", actionObj.url);
} else {
+ // External URL — open in system browser
try {
const { open } = await import("@tauri-apps/plugin-shell");
await open(actionObj.url);
} catch {
- window.open(actionObj.url, "_blank");
+ // shell plugin not available in this window
}
}
}