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): remove page reload on window focus that reset timeline
Louis Beaumont417268d6bf8d
diff --git a/screenpipe-app-tauri/lib/hooks/use-current-frame.tsx b/screenpipe-app-tauri/lib/hooks/use-current-frame.tsxindex e5d002fce..02b17762d 100644--- a/screenpipe-app-tauri/lib/hooks/use-current-frame.tsx+++ b/screenpipe-app-tauri/lib/hooks/use-current-frame.tsx@@ -1,8 +1,6 @@import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";import { useEffect, useRef, useState } from "react";import { useTimelineStore } from "./use-timeline-store";-import { listen } from "@tauri-apps/api/event";-import { getCurrentWindow } from "@tauri-apps/api/window";export const useCurrentFrame = (setCurrentIndex: (index: number) => void) => {const [currentFrame, setCurrentFrame] =@@ -19,22 +17,6 @@ export const useCurrentFrame = (setCurrentIndex: (index: number) => void) => {lastFramesLen.current = frames.length;}, [isLoading, frames]);- useEffect(() => {- const handleWindowFocused = (isFocused: boolean) => {- if (isFocused) {- window.location.reload();- }- };-- const unlisten = listen("window-focused", (event) => {- console.log("window-focused", event.payload);- handleWindowFocused(event.payload as boolean);- });-- return () => {- unlisten.then(unlisten => unlisten());- };- }, []);return {