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: flip confusing "disable" toggles to positive labels, show "recording off" on timeline
Louis Beaumontb2cbf20ea6da
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex 665bf8f06..2db763a11 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -5,7 +5,7 @@import { useEffect, useState, useRef, useCallback } from "react";-import { Loader2, RotateCcw, AlertCircle, X, Sparkles, Globe, Lock, ExternalLink } from "lucide-react";+import { Loader2, RotateCcw, AlertCircle, X, Sparkles, Globe, Lock, ExternalLink, MonitorOff, Settings } from "lucide-react";import { SearchModal } from "@/components/rewind/search-modal";import { commands } from "@/lib/utils/tauri";import { listen, emit } from "@tauri-apps/api/event";@@ -956,41 +956,66 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {{!currentFrame && !showBlockingLoader && !error && frames.length === 0 && !isLoading ? (<div className="absolute inset-0 flex items-center justify-center bg-gradient-to-b from-background via-background to-muted/20">- <div className="text-center p-8 max-w-md">- {/* Animated icon */}- <div className="relative mx-auto mb-8 w-24 h-24">- {/* Pulsing rings */}- <div className="absolute inset-0 rounded-full border-2 border-primary/20 animate-ping" style={{ animationDuration: '3s' }} />- <div className="absolute inset-2 rounded-full border-2 border-primary/30 animate-ping" style={{ animationDuration: '3s', animationDelay: '0.5s' }} />- <div className="absolute inset-4 rounded-full border-2 border-primary/40 animate-ping" style={{ animationDuration: '3s', animationDelay: '1s' }} />- {/* Center icon */}- <div className="absolute inset-0 flex items-center justify-center">- <div className="w-16 h-16 rounded-full bg-primary/10 border border-primary/30 flex items-center justify-center">- <Sparkles className="w-8 h-8 text-primary animate-pulse" />+ {health?.frame_status === "disabled" ? (+ <div className="text-center p-8 max-w-md">+ <div className="mx-auto mb-8 w-24 h-24 flex items-center justify-center">+ <div className="w-16 h-16 rounded-full bg-muted/50 border border-border flex items-center justify-center">+ <MonitorOff className="w-8 h-8 text-muted-foreground" /></div></div>- </div>- <h3 className="text-xl font-semibold text-foreground mb-3">- Building Your Memory- </h3>- <p className="text-muted-foreground mb-6 leading-relaxed">- Screenpipe is recording your screen activity. Your timeline will appear here as frames are captured.- </p>-- {/* Friendly suggestion */}- <div className="inline-flex items-center gap-2 px-4 py-2 bg-muted/50 rounded-full border border-border text-sm text-muted-foreground">- <span className="relative flex h-2 w-2">- <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"></span>- <span className="relative inline-flex rounded-full h-2 w-2 bg-green-500"></span>- </span>- Recording in progress+ <h3 className="text-xl font-semibold text-foreground mb-3">+ Screen recording is off+ </h3>+ <p className="text-muted-foreground mb-6 leading-relaxed">+ Enable screen recording in settings to start capturing your timeline.+ </p>++ <button+ onClick={() => commands.showWindow("Settings")}+ className="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-full text-sm font-medium hover:bg-primary/90 transition-colors"+ >+ <Settings className="w-4 h-4" />+ Open settings+ </button></div>+ ) : (+ <div className="text-center p-8 max-w-md">+ {/* Animated icon */}+ <div className="relative mx-auto mb-8 w-24 h-24">+ {/* Pulsing rings */}+ <div className="absolute inset-0 rounded-full border-2 border-primary/20 animate-ping" style={{ animationDuration: '3s' }} />+ <div className="absolute inset-2 rounded-full border-2 border-primary/30 animate-ping" style={{ animationDuration: '3s', animationDelay: '0.5s' }} />+ <div className="absolute inset-4 rounded-full border-2 border-primary/40 animate-ping" style={{ animationDuration: '3s', animationDelay: '1s' }} />+ {/* Center icon */}+ <div className="absolute inset-0 flex items-center justify-center">+ <div className="w-16 h-16 rounded-full bg-primary/10 border border-primary/30 flex items-center justify-center">+ <Sparkles className="w-8 h-8 text-primary animate-pulse" />+ </div>+ </div>+ </div>- <p className="text-xs text-muted-foreground mt-6">- Check back in a few minutes- </p>- </div>+ <h3 className="text-xl font-semibold text-foreground mb-3">+ Building Your Memory+ </h3>+ <p className="text-muted-foreground mb-6 leading-relaxed">+ Screenpipe is recording your screen activity. Your timeline will appear here as frames are captured.+ </p>++ {/* Friendly suggestion */}+ <div className="inline-flex items-center gap-2 px-4 py-2 bg-muted/50 rounded-full border border-border text-sm text-muted-foreground">+ <span className="relative flex h-2 w-2">+ <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"></span>+ <span className="relative inline-flex rounded-full h-2 w-2 bg-green-500"></span>+ </span>+ Recording in progress+ </div>++ <p className="text-xs text-muted-foreground mt-6">+ Check back in a few minutes+ </p>+ </div>+ )}</div>) : null}</div>diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsxindex 7448f3df8..b2da00b01 100644--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx@@ -1188,18 +1188,18 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre<div className="space-y-2 pt-2"><h2 className="text-xs font-semibold text-muted-foreground uppercase tracking-wider px-1">Audio</h2>- {/* Disable Audio */}+ {/* Audio Recording Toggle */}<Card className="border-border bg-card"><CardContent className="px-3 py-2.5"><div className="flex items-center justify-between"><div className="flex items-center space-x-2.5"><Mic className="h-4 w-4 text-muted-foreground shrink-0" /><div>- <h3 className="text-sm font-medium text-foreground">Disable audio recording</h3>- <p className="text-xs text-muted-foreground">Turn off audio capture completely</p>+ <h3 className="text-sm font-medium text-foreground">Audio recording</h3>+ <p className="text-xs text-muted-foreground">Capture audio from microphone and system</p></div></div>- <Switch id="disableAudio" checked={settings.disableAudio} onCheckedChange={handleDisableAudioChange} />+ <Switch id="disableAudio" checked={!settings.disableAudio} onCheckedChange={(checked) => handleDisableAudioChange(!checked)} /></div></CardContent></Card>@@ -1786,18 +1786,18 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre<div className="space-y-2 pt-2"><h2 className="text-xs font-semibold text-muted-foreground uppercase tracking-wider px-1">Screen</h2>- {/* Disable Screen Recording */}+ {/* Screen Recording Toggle */}<Card className="border-border bg-card"><CardContent className="px-3 py-2.5"><div className="flex items-center justify-between"><div className="flex items-center space-x-2.5"><Monitor className="h-4 w-4 text-muted-foreground shrink-0" /><div>- <h3 className="text-sm font-medium text-foreground">Disable screen recording</h3>- <p className="text-xs text-muted-foreground">Turn off screen capture completely</p>+ <h3 className="text-sm font-medium text-foreground">Screen recording</h3>+ <p className="text-xs text-muted-foreground">Capture screenshots from your monitors</p></div></div>- <Switch id="disableVision" checked={settings.disableVision} onCheckedChange={(checked) => handleSettingsChange({ disableVision: checked }, true)} />+ <Switch id="disableVision" checked={!settings.disableVision} onCheckedChange={(checked) => handleSettingsChange({ disableVision: !checked }, true)} /></div></CardContent></Card>diff --git a/crates/screenpipe-server/src/hot_frame_cache.rs b/crates/screenpipe-server/src/hot_frame_cache.rsindex d3ed70315..8cf71f45f 100644--- a/crates/screenpipe-server/src/hot_frame_cache.rs+++ b/crates/screenpipe-server/src/hot_frame_cache.rs@@ -264,10 +264,13 @@ impl HotFrameCache {}}- // Set cache coverage — use the query start time (not earliest- // frame) so we know the DB was scanned from `start` even if- // there were no frames in the early portion of the range.- *self.cache_warm_start.write().await = Some(start);+ // Only set cache coverage if we actually found frames. When the+ // cache is empty (e.g. vision disabled, fresh install), we must+ // NOT claim coverage — otherwise the streaming handler skips+ // the DB backfill and the timeline stays permanently empty.+ if frame_count > 0 {+ *self.cache_warm_start.write().await = Some(start);+ }info!("hot_frame_cache: warmed with {} frame entries, coverage from {}",