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: clear frames on navigation to prevent stale data and retry issues
Louis Beaumont3672e77f274b
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsxindex c9403d375..00779e0ef 100644--- a/apps/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx+++ b/apps/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx@@ -142,14 +142,21 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({clearTimeout(flushTimer);flushTimer = null;}- // DON'T clear frames - keep showing current data while loading new date.- // Clearing causes visible "jumping" as frames stream in one-by-one.- // The pendingNavigation effect in timeline.tsx filters by target date- // when selecting the correct frame after navigation completes.- set((state) => ({+ // Clear request timeout so stale retries don't interfere+ if (requestTimeoutTimer) {+ clearTimeout(requestTimeoutTimer);+ requestTimeoutTimer = null;+ }+ requestRetryCount = 0;+ // Clear frames + timestamps so:+ // 1) request timeout logic correctly sees "no frames" and retries+ // 2) pendingNavigation effect triggers on first batch from new date+ set(() => ({+ frames: [],+ frameTimestamps: new Set<string>(),sentRequests: new Set<string>(),isLoading: true,- loadingProgress: { loaded: state.frames.length, isStreaming: false },+ loadingProgress: { loaded: 0, isStreaming: false },error: null,message: "loading...",}));