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 note + HD button now opens the live note (#4318)

Louis Beaumontfa83a1bbb06b
diff --git a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
index d42f4a95d..af358d9d7 100644
--- a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
+++ b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
@@ -168,11 +168,27 @@ export default function NotificationPanelPage() {
}
case "api": {
if (actionObj.url) {
- await localFetch(actionObj.url, {
+ const res = await localFetch(actionObj.url, {
method: actionObj.method || "POST",
headers: { "Content-Type": "application/json" },
body: actionObj.body ? JSON.stringify(actionObj.body) : undefined,
});
+ // "open note + HD": the meeting-start HD action embeds the
+ // live-note deeplink so a single click both starts HD capture
+ // (this api call) and opens the note. Without this the note
+ // never opens — the button only starts HD. Gated on res.ok so
+ // a failed start doesn't navigate. Mirrors the native handler
+ // in components/notification-handler.tsx.
+ const noteUrl = actionObj.deeplinkUrl || actionObj.deeplink_url;
+ if (
+ res.ok &&
+ typeof noteUrl === "string" &&
+ noteUrl.startsWith("screenpipe://")
+ ) {
+ await commands.showWindowActivated(windowForDeeplink(noteUrl));
+ await new Promise((r) => setTimeout(r, 150));
+ await emit("deep-link-received", noteUrl);
+ }
}
break;
}