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(sidebar): hide pipe rows already shown in scheduled
Louis Beaumont6b4edca9b022
diff --git a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx b/apps/screenpipe-app-tauri/components/chat-sidebar.tsxindex d95c07ed7..2eda81e92 100644--- a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx+++ b/apps/screenpipe-app-tauri/components/chat-sidebar.tsx@@ -44,6 +44,7 @@ import {type SessionRecord,} from "@/lib/stores/chat-store";import { updateConversationFlags } from "@/lib/chat-storage";+import { pipeSessionId } from "@/lib/events/types";interface ChatSidebarProps {className?: string;@@ -86,12 +87,30 @@ export function ChatSidebar({ className }: ChatSidebarProps) {};}, [actions]);+ const runningPipes = useRunningPipes();++ // Pipe-watch / pipe-run sessions also rendered in Scheduled get filtered+ // out here — otherwise the same pipe shows up twice (live row in+ // Scheduled + duplicate row in Recents). Once the pipe stops running it+ // drops out of this set and reappears in Recents naturally.+ const liveScheduledSids = useMemo(() => {+ const set = new Set<string>();+ for (const p of runningPipes) {+ if (p.executionId !== undefined) set.add(pipeSessionId(p.pipeName, p.executionId));+ }+ return set;+ }, [runningPipes]);+const { pinned, recents } = useMemo(() => {const p: SessionRecord[] = [];const r: SessionRecord[] = [];- for (const s of sessions) (s.pinned ? p : r).push(s);+ for (const s of sessions) {+ const isPipeKind = s.kind === "pipe-watch" || s.kind === "pipe-run";+ if (isPipeKind && liveScheduledSids.has(s.id)) continue;+ (s.pinned ? p : r).push(s);+ }return { pinned: p, recents: r };- }, [sessions]);+ }, [sessions, liveScheduledSids]);const handleNew = () => {// Reuse an existing empty chat instead of spawning a fresh one@@ -179,8 +198,6 @@ export function ChatSidebar({ className }: ChatSidebarProps) {}};- const runningPipes = useRunningPipes();-// Layout contract:// - Scheduled (pipe runs): only renders when something's running;// own collapsible scroll viewport capped at ~25% so it neverdiff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 6d810b608..0c8aadd43 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.4.88"+version = "2.4.89"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""