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
fix: handle start_time/end_time params in screenpipe:// deep links
Louis Beaumont0389757ff5f0
diff --git a/apps/screenpipe-app-tauri/components/deeplink-handler.tsx b/apps/screenpipe-app-tauri/components/deeplink-handler.tsxindex d26930ace..c876b4b64 100644--- a/apps/screenpipe-app-tauri/components/deeplink-handler.tsx+++ b/apps/screenpipe-app-tauri/components/deeplink-handler.tsx@@ -67,17 +67,18 @@ export function DeeplinkHandler() {openStatusDialog();}- // Handle timeline deep links: screenpipe://timeline?timestamp=ISO8601+ // Handle timeline deep links:+ // screenpipe://timeline?timestamp=ISO8601+ // screenpipe://timeline?start_time=ISO8601&end_time=ISO8601if (parsedUrl.pathname === "timeline" || parsedUrl.host === "timeline") {- const timestamp = parsedUrl.searchParams.get("timestamp");+ const timestamp =+ parsedUrl.searchParams.get("timestamp") ||+ parsedUrl.searchParams.get("start_time");if (timestamp) {try {- // Validate timestamp formatconst date = new Date(timestamp);if (!isNaN(date.getTime())) {- // Show the main window firstawait commands.showWindow("Main");- // Emit the navigate event to timelineawait emit("navigate-to-timestamp", timestamp);toast({title: "navigating to timestamp",@@ -96,6 +97,23 @@ export function DeeplinkHandler() {}}}++ // Handle frame deep links: screenpipe://frame/12345+ if (parsedUrl.pathname?.startsWith("/frame/") || parsedUrl.host === "frame") {+ const frameId = (parsedUrl.pathname || parsedUrl.host === "frame" ? `/${url.split("frame/")[1]}` : "").replace(/^\//, "");+ if (frameId) {+ try {+ await commands.showWindow("Main");+ await emit("navigate-to-frame", frameId);+ toast({+ title: "navigating to frame",+ description: `jumping to frame ${frameId}`,+ });+ } catch (error) {+ console.error("Failed to navigate to frame:", error);+ }+ }+ }}});return unsubscribeDeepLink;diff --git a/apps/screenpipe-app-tauri/components/rewind/chat-message.tsx b/apps/screenpipe-app-tauri/components/rewind/chat-message.tsxindex c147a853b..8d4b23513 100644--- a/apps/screenpipe-app-tauri/components/rewind/chat-message.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/chat-message.tsx@@ -173,7 +173,7 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {e.preventDefault();try {const url = new URL(href);- const timestamp = url.searchParams.get("timestamp");+ const timestamp = url.searchParams.get("timestamp") || url.searchParams.get("start_time");if (timestamp) {const date = new Date(timestamp);if (!isNaN(date.getTime())) {diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex 76e910bab..8e6ce5f9d 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -272,7 +272,7 @@ function MarkdownBlock({ text, isUser }: { text: string; isUser: boolean }) {e.preventDefault();try {const url = new URL(href);- const timestamp = url.searchParams.get("timestamp");+ const timestamp = url.searchParams.get("timestamp") || url.searchParams.get("start_time");if (timestamp) {const date = new Date(timestamp);if (!isNaN(date.getTime())) {