Skip to content

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

fix: wire up useUpdateListener so update banner actually shows

Louis Beaumont8effd6ac679a
diff --git a/apps/screenpipe-app-tauri/app/page.tsx b/apps/screenpipe-app-tauri/app/page.tsx
index 7a41b4915..0f944ae5a 100644
--- a/apps/screenpipe-app-tauri/app/page.tsx
+++ b/apps/screenpipe-app-tauri/app/page.tsx
@@ -13,7 +13,7 @@ import { useHealthCheck } from "@/lib/hooks/use-health-check";
import { commands } from "@/lib/utils/tauri";
import localforage from "localforage";
import { LoginDialog } from "../components/login-dialog";
-import { UpdateBanner } from "../components/update-banner";
+import { UpdateBanner, useUpdateListener } from "../components/update-banner";
import { ModelDownloadTracker } from "../components/model-download-tracker";
import Timeline from "@/components/rewind/timeline";
import { Button } from "@/components/ui/button";
@@ -34,6 +34,9 @@ export default function Home() {
const [isRestarting, setIsRestarting] = useState(false);
const isProcessingRef = useRef(false);
+ // Listen for update events from Rust backend
+ useUpdateListener();
+
// Optimistic UI: track if user has any data (cached or live)
const { frames, isConnected, loadFromCache } = useTimelineStore();
const [hasAnyData, setHasAnyData] = useState(false);
@@ -173,10 +176,10 @@ export default function Home() {
<BreakingChangesInstructionsDialog />
<LoginDialog />
<ModelDownloadTracker />
+ <UpdateBanner />
{showTimeline ? (
<div className="w-full scrollbar-hide bg-background relative">
- <UpdateBanner />
{/* Subtle disconnected indicator - only show if we have data but no connection */}
{hasAnyData && !isConnected && isServerDown && (
<div className="fixed top-10 right-4 z-50 flex items-center gap-2 px-3 py-1.5 bg-muted/90 backdrop-blur-sm rounded-full text-xs text-muted-foreground border">