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(connections): show loading + retry instead of blank panel
Louis Beaumontb7166baec405
diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsxindex 0a5739141..100a4e961 100644--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx@@ -1668,7 +1668,33 @@ export function ConnectionsSection() {}return <ApiIntegrationPanel integration={selectedIntegration} onRefresh={fetchIntegrations} />;}- return null;+ // Fall-through: hardcoded tile but the API hasn't returned (or returned without+ // this id). Without this branch the panel renders a blank card with just the+ // icon + close button. Show loading or a retry instead.+ if (!integrationsLoaded) {+ return (+ <div className="flex items-center gap-2 text-xs text-muted-foreground">+ <Loader2 className="h-3 w-3 animate-spin" />+ loading connection...+ </div>+ );+ }+ return (+ <div className="space-y-2">+ <p className="text-xs text-muted-foreground">+ couldn't load connection metadata. the local screenpipe server may be starting up.+ </p>+ <Button+ size="sm"+ variant="outline"+ className="h-7 text-xs gap-1.5 normal-case font-sans tracking-normal"+ onClick={() => { apiCache.invalidate("connections/list"); fetchIntegrations(); }}+ >+ <Loader2 className="h-3 w-3" />+ retry+ </Button>+ </div>+ );}};