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: skip snapToDevice for exact frame_id search navigation
Louis Beaumontc96e8db5bb17
diff --git a/apps/screenpipe-app-tauri/components/rewind/hooks/use-date-navigation.ts b/apps/screenpipe-app-tauri/components/rewind/hooks/use-date-navigation.tsindex 540a08eb2..24339e03c 100644--- a/apps/screenpipe-app-tauri/components/rewind/hooks/use-date-navigation.ts+++ b/apps/screenpipe-app-tauri/components/rewind/hooks/use-date-navigation.ts@@ -92,10 +92,11 @@ export function useDateNavigation(opts: {f.devices.some((d) => String(d.frame_id) === String(frameId)));if (exactIdx >= 0) {- const snapped = snapToDevice(exactIdx);- setCurrentIndex(snapped);- if (frames[snapped]) {- setCurrentFrame(frames[snapped]);+ // Use exact match directly — don't snapToDevice() which would+ // override with a nearby frame from the filtered device+ setCurrentIndex(exactIdx);+ if (frames[exactIdx]) {+ setCurrentFrame(frames[exactIdx]);}return;}@@ -377,9 +378,14 @@ export function useDateNavigation(opts: {}resetFilters();- const snapped = snapToDevice(closestIndex);- setCurrentIndex(snapped);- setCurrentFrame(frames[snapped]);+ // If we matched by exact frame_id, use that index directly+ // (don't snapToDevice which overrides with a nearby frame)+ const finalIndex = (pendingFrameId != null && closestIndex >= 0 &&+ frames[closestIndex]?.devices.some((d) => String(d.frame_id) === String(pendingFrameId)))+ ? closestIndex+ : snapToDevice(closestIndex);+ setCurrentIndex(finalIndex);+ setCurrentFrame(frames[finalIndex]);// Use HTTP JPEG fallback for this first frame (skip slow video seek)setSearchNavFrame(true);diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 0afc70d09..8d662af4e 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -9299,7 +9299,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.2.114"+version = "2.2.115"dependencies = ["anyhow","arboard",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex aa0827109..95cce3e1e 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.2.114"+version = "2.2.115"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""