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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat(meetings): one-click "open note + HD" on the meeting notification (#4210)
Louis Beaumont9db27db33867
diff --git a/apps/screenpipe-app-tauri/components/notification-handler.tsx b/apps/screenpipe-app-tauri/components/notification-handler.tsxindex f9ef08dea..539f1ea72 100644--- a/apps/screenpipe-app-tauri/components/notification-handler.tsx+++ b/apps/screenpipe-app-tauri/components/notification-handler.tsx@@ -197,6 +197,18 @@ const NotificationHandler: React.FC = () => {body: "Capturing this meeting at high frame rate. Stops automatically when the call ends.",}),}).catch(() => {});++ // "open note + HD": the started-meeting HD button carries the+ // live-note deeplink so a single click both starts HD and opens+ // the note. Routes the same way as the standalone "open note"+ // deeplink action below. No-op for the prewarm "+ HD" (no url).+ const noteUrl = action.deeplinkUrl || action.deeplink_url;+ if (typeof noteUrl === "string" && noteUrl.startsWith("screenpipe://")) {+ await commands.showWindowActivated(windowForDeeplink(noteUrl));+ await new Promise((r) => setTimeout(r, 150));+ const { emit } = await import("@tauri-apps/api/event");+ await emit("deep-link-received", noteUrl);+ }}return;}diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsxindex 579bf0732..90342f7e2 100644--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx@@ -1649,7 +1649,7 @@ function HighFpsCard({<div className="flex flex-col gap-1">{([- { v: "ask" as const, label: "Ask me", hint: "Adds a “+ HD” action to the meeting-start notification (recommended)" },+ { v: "ask" as const, label: "Ask me", hint: "Adds an “open note + HD” action to the meeting-start notification — one click opens the note and starts HD (recommended)" },{ v: "always" as const, label: "Always record at HD", hint: "Auto-start every detected meeting — more disk + CPU per call" },{ v: "never" as const, label: "Never", hint: "No prompt; only the tray timer can start a session" },] satisfies Array<{ v: HdDefaultMode; label: string; hint: string }>diff --git a/apps/screenpipe-app-tauri/src-tauri/src/meeting_live_notes.rs b/apps/screenpipe-app-tauri/src-tauri/src/meeting_live_notes.rsindex 794748814..d522be18e 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/meeting_live_notes.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/meeting_live_notes.rs@@ -227,8 +227,9 @@ pub fn start(app: AppHandle) {}));}// Prewarm fires before the meeting row exists; the HD action- // uses a timer-bound fallback so it's still safe to click.- if let Some(hd) = build_hd_action(&prewarm_app, None) {+ // uses a timer-bound fallback so it's still safe to click. No+ // note deeplink yet — keeps the plain "+ HD" label.+ if let Some(hd) = build_hd_action(&prewarm_app, None, None) {actions.push(hd);}@@ -335,7 +336,9 @@ pub fn start(app: AppHandle) {"url": url.clone(),"primary": true,})];- if let Some(hd) = build_hd_action(&app, Some(meeting_id)) {+ // The note deeplink doubles the HD button as "open note + HD":+ // one click opens this meeting's live note and starts HD capture.+ if let Some(hd) = build_hd_action(&app, Some(meeting_id), Some(&url)) {actions.push(hd);}@@ -423,7 +426,7 @@ fn meeting_notifications_enabled(app: &AppHandle) -> bool {}/// Read the user's HD-recording default mode (`"ask" | "always" | "never"`).-/// Drives whether the meeting-start notification carries a "+ HD" action:+/// Drives whether the meeting-start notification carries an HD action:/// - `"ask"` (default) — yes, add the action./// - `"always"` — no, the engine auto-starts the session itself; an action/// here would be a confusing no-op.@@ -441,7 +444,7 @@ fn hd_recording_default(app: &AppHandle) -> String {.to_string()}-/// Build the "+ HD" notification action. Returns `None` when the user's+/// Build the HD notification action. Returns `None` when the user's/// preference suppresses it.////// When `meeting_id` is known (the started notification), starts a@@ -452,7 +455,17 @@ fn hd_recording_default(app: &AppHandle) -> String {/// `meeting_started` subscriber then upgrades it to meeting-bound on the/// next event, preserving `started_at` so the user gets HD coverage for/// the whole call — not the previous 1-hour timer that clipped long calls.-fn build_hd_action(app: &AppHandle, meeting_id: Option<i64>) -> Option<serde_json::Value> {+///+/// `note_url` is the live-note deeplink. When present (started+/// notification), the button both opens the note and starts HD in one+/// click — labeled "open note + HD" — so the user doesn't have to choose+/// between the two adjacent buttons. The prewarm notification has no+/// meeting row yet (no note to open), so it keeps the plain "+ HD" label.+fn build_hd_action(+ app: &AppHandle,+ meeting_id: Option<i64>,+ note_url: Option<&str>,+) -> Option<serde_json::Value> {if hd_recording_default(app) != "ask" {return None;}@@ -460,7 +473,7 @@ fn build_hd_action(app: &AppHandle, meeting_id: Option<i64>) -> Option<serde_jsoSome(id) => json!({ "boundTo": "meeting", "meetingId": id }),None => json!({ "boundTo": "prewarm_pending" }),};- Some(json!({+ let mut action = json!({"id": "record-hd","action": "record-hd","label": "+ HD",@@ -468,7 +481,14 @@ fn build_hd_action(app: &AppHandle, meeting_id: Option<i64>) -> Option<serde_jso"url": "/capture/hd/start","method": "POST","body": body,- }))+ });+ // Embed the note deeplink so the click also opens the live note. The JS+ // notification handler reads `deeplinkUrl` after the HD start succeeds.+ if let Some(url) = note_url.filter(|u| !u.trim().is_empty()) {+ action["label"] = json!("open note + HD");+ action["deeplinkUrl"] = json!(url);+ }+ Some(action)}async fn fetch_fresh_calendar_events(app: &AppHandle) -> Vec<CalendarEventSignal> {diff --git a/sp-notif-open-note-hd.png b/sp-notif-open-note-hd.pngnew file mode 100644index 000000000..5b1d010b8Binary files /dev/null and b/sp-notif-open-note-hd.png differ