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: hide chat empty-state during pipe streaming, retry meeting activity fetch, drop unused summary pipe button
Louis Beaumont6f5b495f2e55
diff --git a/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx b/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsxindex d96629fbb..8aa90c33f 100644--- a/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx+++ b/apps/screenpipe-app-tauri/components/meeting-notes/note-view.tsx@@ -19,7 +19,6 @@ import {Mic2,Play,RefreshCw,- Settings2,Sparkles,Square,Trash2,@@ -73,14 +72,7 @@ import { Receipts } from "./receipts";import { ReplayStrip } from "./replay-strip";import { NoteEditor } from "./note-editor";import { TranscriptPanel } from "./transcript-panel";-import { SummaryPipePicker } from "./summary-pipe-picker";import { useSettings, type Settings } from "@/lib/hooks/use-settings";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@/components/ui/tooltip";const AUTOSAVE_DEBOUNCE_MS = 800;@@ -154,7 +146,6 @@ export function NoteView({initialTranscriptOpen || readTranscriptOpenPreference(meeting.id),);const [transcriptRefreshKey, setTranscriptRefreshKey] = useState(0);- const [pickerOpen, setPickerOpen] = useState(false);const [nowMs, setNowMs] = useState(() => Date.now());const [audioStatusDevices, setAudioStatusDevices] = useState<AudioStatusDevice[]@@ -289,6 +280,41 @@ export function NoteView({};}, [meeting.id, isLive, meeting.meeting_start, meeting.meeting_end]);+ // Retry the activity-summary fetch with backoff when it came back empty.+ // Without this, a meeting opened while the daemon was offline (or before+ // any frames landed in the meeting's time range) leaves the replay strip+ // hidden forever even after recording resumes. Only runs while not live —+ // the main effect above already polls every 30s during live recording.+ // Only setMeetingCtx on success so a failed retry doesn't re-trigger the+ // effect and reset the attempt counter into an infinite loop.+ useEffect(() => {+ if (isLive) return;+ if (!meetingCtx) return;+ if (meetingCtx.activity) return;+ let cancelled = false;+ let attempt = 0;+ const maxAttempts = 5;+ let timer: ReturnType<typeof setTimeout> | null = null;+ const tick = async () => {+ attempt += 1;+ const ctx = await fetchMeetingContext(meeting);+ if (cancelled) return;+ if (ctx.activity) {+ setMeetingCtx(ctx);+ return;+ }+ if (attempt < maxAttempts) {+ const delay = Math.min(2000 * 2 ** attempt, 30_000);+ timer = setTimeout(tick, delay);+ }+ };+ timer = setTimeout(tick, 2000);+ return () => {+ cancelled = true;+ if (timer) clearTimeout(timer);+ };+ }, [isLive, meetingCtx, meeting]);+// Accept upstream updates only for fields the user hasn't touched locallyuseEffect(() => {const last = lastSavedRef.current;@@ -682,30 +708,6 @@ export function NoteView({<RefreshCw className="h-3.5 w-3.5" />)}</Button>- <TooltipProvider delayDuration={300}>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="sm"- onClick={() => setPickerOpen(true)}- className="h-8 w-8 rounded-none p-0"- aria-label="choose summary pipe"- title="choose summary pipe"- >- <Settings2 className="h-3.5 w-3.5" />- </Button>- </TooltipTrigger>- <TooltipContent side="bottom">- <p className="text-xs">- pipe:{" "}- <code className="text-[10px]">- {settings.meetingSummaryPipeSlug || "meeting-summary"}- </code>- </p>- </TooltipContent>- </Tooltip>- </TooltipProvider></>)}</div>@@ -922,8 +924,6 @@ export function NoteView({</div></div></footer>-- <SummaryPipePicker open={pickerOpen} onOpenChange={setPickerOpen} /></div>);}diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex aa297c736..4b77c30aa 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -7024,7 +7024,7 @@ export function StandaloneChat({executionId={activePipeExecution.executionId}/>)}- {messages.length === 0 && !isPreparingPrefill && disabledReason && (!hasPresets || !hasValidModel || needsLogin) && (+ {messages.length === 0 && !isPreparingPrefill && !activePipeExecution && !isLoading && !isStreaming && disabledReason && (!hasPresets || !hasValidModel || needsLogin) && (<div className="relative flex flex-col items-center justify-center py-12 space-y-4"><div className="relative p-6 rounded-2xl border bg-muted/50 border-border/50">{needsLogin ? (@@ -7065,7 +7065,7 @@ export function StandaloneChat({)}</div>)}- {messages.length === 0 && !isPreparingPrefill && hasPresets && hasValidModel && (+ {messages.length === 0 && !isPreparingPrefill && !activePipeExecution && !isLoading && !isStreaming && hasPresets && hasValidModel && (<SummaryCardsonSendMessage={sendMessage}onOpenConnection={openConnectionSetup}