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

feat(hd): confirm "+ HD" notification click with an in-app /notify

Louis Beaumont8c970c773879
diff --git a/apps/screenpipe-app-tauri/components/notification-handler.tsx b/apps/screenpipe-app-tauri/components/notification-handler.tsx
index c66820fca..f9ef08dea 100644
--- a/apps/screenpipe-app-tauri/components/notification-handler.tsx
+++ b/apps/screenpipe-app-tauri/components/notification-handler.tsx
@@ -179,11 +179,25 @@ const NotificationHandler: React.FC = () => {
}
if (action.type === "api" && action.url) {
- await localFetch(action.url, {
+ const res = await localFetch(action.url, {
method: action.method || "POST",
headers: { "Content-Type": "application/json" },
body: action.body ? JSON.stringify(action.body) : undefined,
});
+ // The "+ HD" action calls /capture/hd/start, which is otherwise
+ // silent — confirm the click with an in-app /notify so the user
+ // knows HD capture actually started. Gated on res.ok so a failed
+ // start never shows a false "started" toast.
+ if (action.action === "record-hd" && res.ok) {
+ await localFetch("/notify", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ title: "HD recording started",
+ body: "Capturing this meeting at high frame rate. Stops automatically when the call ends.",
+ }),
+ }).catch(() => {});
+ }
return;
}