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
feat: transcription paused indicator + monitor filter on timeline
Louis Beaumont7fddcd10dde5
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex f15613ac7..dea85450d 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -25,6 +25,7 @@ import { findNearestDateWithFrames } from "@/lib/actions/has-frames-date";import { CurrentFrameTimeline } from "@/components/rewind/current-frame-timeline";import { usePlatform } from "@/lib/hooks/use-platform";import { useAudioPlayback } from "@/lib/hooks/use-audio-playback";+import { useHealthCheck } from "@/lib/hooks/use-health-check";import posthog from "posthog-js";import { toast } from "@/components/ui/use-toast";@@ -80,9 +81,11 @@ const easeOutCubic = (x: number): number => {export default function Timeline({ embedded = false }: { embedded?: boolean }) {const { isMac } = usePlatform();+ const { health } = useHealthCheck();const [currentIndex, setCurrentIndex] = useState(0);const [showAudioTranscript, setShowAudioTranscript] = useState(false);const [showSearchModal, setShowSearchModal] = useState(false);+ const [selectedDeviceId, setSelectedDeviceId] = useState<string>("all");const containerRef = useRef<HTMLDivElement | null>(null);@@ -183,7 +186,7 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {const isAtLiveEdge = currentIndex === 0;const prevFramesLengthRef = useRef(frames.length);- // collect unique device ids across all frames (for monitor pill)+ // collect unique device ids across all frames (for monitor filter)const allDeviceIds = useMemo(() => {const ids = new Set<string>();for (const frame of frames) {@@ -191,9 +194,17 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {if (d.device_id) ids.add(d.device_id);}}- return [...ids];+ return [...ids].sort();}, [frames]);+ // Filter current frame's devices by selected monitor for display+ const displayFrame = useMemo(() => {+ if (!currentFrame || selectedDeviceId === "all" || allDeviceIds.length <= 1) return currentFrame;+ const filtered = currentFrame.devices.filter((d) => d.device_id === selectedDeviceId);+ if (filtered.length === 0) return currentFrame; // fallback if device not in this frame+ return { ...currentFrame, devices: filtered };+ }, [currentFrame, selectedDeviceId, allDeviceIds.length]);+// When new frames arrive and user is NOT at live edge, adjust index to stay on same frameuseEffect(() => {if (newFramesCount > 0 && !isAtLiveEdge && frames.length > prevFramesLengthRef.current) {@@ -1303,9 +1314,9 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {>{/* Main Image - Full Screen - Should fill entire viewport */}<div className={`absolute inset-0 z-10 ${embedded ? "bg-background" : "bg-black"}`}>- {currentFrame ? (+ {displayFrame ? (<CurrentFrameTimeline- currentFrame={currentFrame}+ currentFrame={displayFrame}allDeviceIds={allDeviceIds}onNavigate={(direction) => {const newIndex = direction === "next"@@ -1435,6 +1446,22 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {/>{/* Top right buttons */}<div className={`absolute ${embedded ? "top-2" : "top-[calc(env(safe-area-inset-top)+16px)]"} right-4 flex items-center gap-2`}>+ {/* Monitor filter — only show when multiple monitors */}+ {allDeviceIds.length > 1 && (+ <select+ value={selectedDeviceId}+ onChange={(e) => setSelectedDeviceId(e.target.value)}+ className="h-8 px-2 text-xs bg-background/80 hover:bg-background border border-border rounded-md transition-colors text-foreground appearance-none cursor-pointer"+ title="Filter by monitor"+ >+ <option value="all">all monitors</option>+ {allDeviceIds.map((id) => (+ <option key={id} value={id}>+ {id.replace("monitor_", "monitor ")}+ </option>+ ))}+ </select>+ )}{/* Refresh button */}<buttononClick={handleRefresh}@@ -1458,6 +1485,8 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {currentIndex={currentIndex}isPlaying={isPlaying}onClick={() => setShowAudioTranscript(true)}+ transcriptionPaused={health?.audio_pipeline?.transcription_paused}+ meetingApp={health?.audio_pipeline?.meeting_app}/></div>diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/subtitle-bar.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/subtitle-bar.tsxindex 1818a079a..77a43930d 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline/subtitle-bar.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/subtitle-bar.tsx@@ -11,6 +11,8 @@ interface SubtitleBarProps {currentIndex: number;isPlaying?: boolean;onClick?: () => void;+ transcriptionPaused?: boolean;+ meetingApp?: string;}interface AudioEntry extends AudioData {@@ -26,7 +28,7 @@ const MAX_LINES = 3;/** How many seconds a line stays visible after its audio ends */const LINGER_SECS = 4;-export function SubtitleBar({ frames, currentIndex, onClick }: SubtitleBarProps) {+export function SubtitleBar({ frames, currentIndex, onClick, transcriptionPaused, meetingApp }: SubtitleBarProps) {// Collect all active audio entries within a window around the current frame,// sorted chronologically. We show the most recent MAX_LINES.const activeEntries = useMemo(() => {@@ -123,7 +125,8 @@ export function SubtitleBar({ frames, currentIndex, onClick }: SubtitleBarProps)}}, [activeEntries.length]);- if (activeEntries.length === 0) return null;+ // Show paused indicator even when no active entries+ if (activeEntries.length === 0 && !transcriptionPaused) return null;return (<div@@ -135,6 +138,16 @@ export function SubtitleBar({ frames, currentIndex, onClick }: SubtitleBarProps)ref={scrollRef}className="flex flex-col gap-1 px-3 py-2 bg-background/80 backdrop-blur-sm rounded border border-border/50 shadow-sm max-w-2xl mx-auto overflow-hidden">+ {/* Transcription status indicator */}+ {transcriptionPaused && (+ <div className="flex items-center gap-1.5 text-[10px] text-amber-500/80">+ <span className="relative flex h-1.5 w-1.5">+ <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-75"></span>+ <span className="relative inline-flex rounded-full h-1.5 w-1.5 bg-amber-500"></span>+ </span>+ <span>transcription paused{meetingApp ? ` (${meetingApp})` : ""}</span>+ </div>+ )}{activeEntries.map((entry, i) => {// Newest line (last) is fully opaque, older lines fadeconst age = activeEntries.length - 1 - i;