Skip to content

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

fix(timeline): always use end-of-day for time range requests

Louis Beaumont8431ad3ed09a
diff --git a/screenpipe-app-tauri/components/rewind/timeline.tsx b/screenpipe-app-tauri/components/rewind/timeline.tsx
index cafd63b85..9d22432cc 100644
--- a/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -446,12 +446,9 @@ export default function Timeline() {
startTime.setHours(0, 0, 0, 0);
const endTime = new Date(currentDateEffect);
- if (isSameDay(endTime, new Date())) {
- // For today: don't set endTime to end of day, leave it as current time
- // so server can poll for real-time frames
- } else {
- endTime.setHours(23, 59, 59, 999);
- }
+ // Always set endTime to end of day (23:59:59) so server can poll for new frames
+ // Server checks `now <= end_time` to decide whether to continue polling
+ endTime.setHours(23, 59, 59, 999);
fetchTimeRange(startTime, endTime);
}
checkIfThereAreFrames();
diff --git a/screenpipe-app-tauri/lib/utils/tauri.ts b/screenpipe-app-tauri/lib/utils/tauri.ts
index a6247c665..bb5c1d833 100644
--- a/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -237,12 +237,6 @@ async setTrayUnhealthIcon() : Promise<void> {
async setTrayHealthIcon() : Promise<void> {
await TAURI_INVOKE("set_tray_health_icon");
},
-/**
- * Log a message from the browser/frontend
- */
-async browserLog(level: string, message: string) : Promise<void> {
- await TAURI_INVOKE("browser_log", { level, message });
-},
/**
* Get current sync status.
*/