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(timeline): use end-of-day for today's time range to enable live polling
Louis Beaumontdd3905b4b9eb
diff --git a/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx b/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsxindex 5c2712836..5fc787fc7 100644--- a/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx+++ b/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx@@ -184,11 +184,9 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({const startTime = new Date(currentDate);startTime.setHours(0, 0, 0, 0);const endTime = new Date(currentDate);- if (endTime.getDate() === new Date().getDate()) {- // For today: use current time for real-time polling- } else {- endTime.setHours(23, 59, 59, 999);- }+ // Always use end of day so server keeps polling for new frames+ // Server checks `now <= end_time` to decide whether to poll+ endTime.setHours(23, 59, 59, 999);fetchTimeRange(startTime, endTime);}, 100);};