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
Revert "fix: hide broken image icons + add 2s loading overlay for search nav"
Louis Beaumont8e5bf35876f5
diff --git a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsxindex 05e148461..0e9daa3f8 100644--- a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx@@ -917,7 +917,6 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({style={{ zIndex: 2 }}alt="Current frame"draggable={false}- onError={(e) => { (e.target as HTMLImageElement).style.display = "none"; }}/>)}@@ -930,7 +929,6 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({style={{ zIndex: 2 }}alt="Current frame"draggable={false}- onError={(e) => { (e.target as HTMLImageElement).style.display = "none"; }}/>)}@@ -992,6 +990,35 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({userToken={settings.user?.token ?? null}/>+ {/* URL chips — bottom of frame, always shown when URLs are detected.+ Previously gated on textPositions.length === 0 which hid chips whenever+ OCR was available — but the inline clickable URLs in TextOverlay are now+ below the SelectableTextLayer (z-index 7 vs 6), so chips are the only+ reliable way to surface URLs. */}+ {!isLoading && !hasError && detectedUrls.length > 0 && (+ <div className="absolute bottom-2 left-1/2 -translate-x-1/2 z-20 flex gap-1.5 max-w-[90%] overflow-x-auto">+ {detectedUrls.map((url) => (+ <button+ key={url.normalized}+ type="button"+ onClick={async () => {+ try {+ const { open } = await import("@tauri-apps/plugin-shell");+ await open(url.normalized);+ } catch {+ window.open(url.normalized, "_blank");+ }+ }}+ className="flex items-center gap-1 px-2 py-1 text-[11px] font-mono bg-black/60 hover:bg-black/80 text-white/80 hover:text-white rounded-sm whitespace-nowrap transition-colors max-w-[200px]"+ title={url.normalized}+ >+ <ExternalLink className="w-3 h-3 shrink-0" />+ <span className="truncate">{url.display}</span>+ </button>+ ))}+ </div>+ )}+</div>);};diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex 5a701181f..28ae461ed 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -227,10 +227,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {// Ref to hold navigateToSearchResult so arrow-key effect doesn't depend on it directlyconst navigateToSearchResultRef = useRef<(index: number) => void>(() => {});- // Loading overlay for search result navigation — minimum 2s display- const [searchNavLoading, setSearchNavLoading] = useState(false);- const searchNavLoadingTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);-// Get timeline selection for chat contextconst { selectionRange, loadTagsForFrames, tags } = useTimelineSelection();const { promptPipes } = usePipes();@@ -1465,11 +1461,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {const result = searchResults[index];if (!result) return;- // Show loading overlay with minimum 2s display- setSearchNavLoading(true);- if (searchNavLoadingTimerRef.current) clearTimeout(searchNavLoadingTimerRef.current);- searchNavLoadingTimerRef.current = setTimeout(() => setSearchNavLoading(false), 2000);-// Update highlight to new framesetHighlight(highlightTerms, result.frame_id);@@ -1748,20 +1739,13 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {/>) : null}- {/* Search result loading overlay */}- {searchNavLoading && inSearchReviewMode && (- <div className="absolute inset-0 z-40 flex items-center justify-center bg-black/40 backdrop-blur-[2px] transition-opacity duration-300">- <Loader2 className="w-8 h-8 text-white animate-spin" />- </div>- )}-{/* Search result navigation indicator */}{inSearchReviewMode && (<div className="absolute bottom-24 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 px-4 py-2 rounded-full bg-black/70 backdrop-blur-sm border border-white/10 text-white text-sm shadow-lg"><span className="text-white/60 truncate max-w-[120px]">“{searchQuery}”</span><buttonclassName="px-1.5 hover:text-white/80 disabled:text-white/30"- disabled={searchResultIndex <= 0 || searchNavLoading}+ disabled={searchResultIndex <= 0}onClick={() => navigateToSearchResult(searchResultIndex - 1)}>◀@@ -1771,7 +1755,7 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {</span><buttonclassName="px-1.5 hover:text-white/80 disabled:text-white/30"- disabled={searchResultIndex >= searchResults.length - 1 || searchNavLoading}+ disabled={searchResultIndex >= searchResults.length - 1}onClick={() => navigateToSearchResult(searchResultIndex + 1)}>▶