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: search modal retry logic + yellow highlight visibility
Louis Beaumont20392110fc4d
diff --git a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsxindex 7d1ef0f52..7af8fbe7b 100644--- a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx@@ -222,10 +222,19 @@ function useSuggestions(isOpen: boolean) {return { suggestions, isLoading };}-// Frame thumbnail component with loading state+// Frame thumbnail component with loading state and retry logicconst FrameThumbnail = ({ frameId, alt }: { frameId: number; alt: string }) => {const [isLoading, setIsLoading] = useState(true);const [hasError, setHasError] = useState(false);+ const [src, setSrc] = useState(`http://localhost:3030/frames/${frameId}`);+ const retryCount = useRef(0);++ useEffect(() => {+ setSrc(`http://localhost:3030/frames/${frameId}`);+ setIsLoading(true);+ setHasError(false);+ retryCount.current = 0;+ }, [frameId]);return (<div className="aspect-video bg-muted relative overflow-hidden">@@ -241,7 +250,7 @@ const FrameThumbnail = ({ frameId, alt }: { frameId: number; alt: string }) => {) : (// eslint-disable-next-line @next/next/no-img-element<img- src={`http://localhost:3030/frames/${frameId}`}+ src={src}alt={alt}className={cn("w-full h-full object-cover transition-opacity",@@ -250,8 +259,15 @@ const FrameThumbnail = ({ frameId, alt }: { frameId: number; alt: string }) => {loading="lazy"onLoad={() => setIsLoading(false)}onError={() => {- setIsLoading(false);- setHasError(true);+ if (retryCount.current < 3) {+ retryCount.current += 1;+ setTimeout(() => {+ setSrc(`http://localhost:3030/frames/${frameId}?retry=${retryCount.current}`);+ }, 1000 * retryCount.current);+ } else {+ setIsLoading(false);+ setHasError(true);+ }}}/>)}diff --git a/apps/screenpipe-app-tauri/components/rewind/thumbnail-highlight-overlay.tsx b/apps/screenpipe-app-tauri/components/rewind/thumbnail-highlight-overlay.tsxindex 6dc90c300..3904e3bc2 100644--- a/apps/screenpipe-app-tauri/components/rewind/thumbnail-highlight-overlay.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/thumbnail-highlight-overlay.tsx@@ -37,22 +37,24 @@ export const ThumbnailHighlightOverlay = memo(function ThumbnailHighlightOverlayreturn terms.some((term) => textLower.includes(term));});- // Skip blocks that cover huge areas (paragraph/window level).- // Keep anything under 30% width — excludes full-line terminal output- // and search-bar text while keeping labels, titles, and short phrases.+ // Skip blocks that cover huge areas (full-window level).+ // Keep anything under 80% width — accessibility tree nodes often have+ // wider bounds than OCR blocks, so a tight filter hides all highlights.const tight = matches.filter(- (m) => m.bounds.width < 0.30+ (m) => m.bounds.width < 0.80);- if (tight.length === 0) return [];+ // If all matches are wide (e.g. full-line accessibility nodes),+ // still show highlights — better to have wide boxes than none at all.+ const candidates = tight.length > 0 ? tight : matches;// Take the 5 smallest to keep thumbnails readable- tight.sort(+ candidates.sort((a, b) =>a.bounds.width * a.bounds.height -b.bounds.width * b.bounds.height);- return tight.slice(0, 5);+ return candidates.slice(0, 5);}, [textPositions, highlightTerms]);if (highlights.length === 0) return null;diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 8c23ec031..c312cea71 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.64"+version = "2.2.65"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""