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

Louis Beaumonte3c91507b53a
diff --git a/Cargo.lock b/Cargo.lock
index 0d449e8fb..57405f990 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6628,7 +6628,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.12"
+version = "0.3.16"
dependencies = [
"anyhow",
"bytemuck",
@@ -6681,7 +6681,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.12"
+version = "0.3.16"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -6732,7 +6732,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.12"
+version = "0.3.16"
dependencies = [
"anyhow",
"chrono",
@@ -6756,7 +6756,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.12"
+version = "0.3.16"
dependencies = [
"anyhow",
"chrono",
@@ -6774,7 +6774,7 @@ dependencies = [
[[package]]
name = "screenpipe-integrations"
-version = "0.3.12"
+version = "0.3.16"
dependencies = [
"anyhow",
"image",
@@ -6789,7 +6789,7 @@ dependencies = [
[[package]]
name = "screenpipe-server"
-version = "0.3.12"
+version = "0.3.16"
dependencies = [
"anyhow",
"async-trait",
@@ -6858,7 +6858,7 @@ dependencies = [
[[package]]
name = "screenpipe-vision"
-version = "0.3.12"
+version = "0.3.16"
dependencies = [
"accessibility-sys",
"anyhow",
diff --git a/screenpipe-app-tauri/app/page.tsx b/screenpipe-app-tauri/app/page.tsx
index 7c66e3604..3dbd85d03 100644
--- a/screenpipe-app-tauri/app/page.tsx
+++ b/screenpipe-app-tauri/app/page.tsx
@@ -175,6 +175,7 @@ export default function Home() {
{showTimeline ? (
<div className="w-full scrollbar-hide bg-background relative">
+<<<<<<< Updated upstream
{/* 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">
@@ -185,6 +186,11 @@ export default function Home() {
{/* Show connecting overlay only if NO data and still loading */}
{!hasAnyData && isHealthLoading && (
+=======
+ <UpdateBanner />
+ {/* Show connecting overlay while health check is loading */}
+ {isHealthLoading && (
+>>>>>>> Stashed changes
<div className="absolute inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm">
<div className="flex flex-col items-center gap-3">
<RefreshCw className="h-6 w-6 animate-spin text-muted-foreground" />
diff --git a/screenpipe-app-tauri/components/settings/general-settings.tsx b/screenpipe-app-tauri/components/settings/general-settings.tsx
index b91c02575..9608075ea 100644
--- a/screenpipe-app-tauri/components/settings/general-settings.tsx
+++ b/screenpipe-app-tauri/components/settings/general-settings.tsx
@@ -11,6 +11,7 @@ import { useToast } from "@/components/ui/use-toast";
import { Button } from "@/components/ui/button";
import { Settings } from "@/lib/hooks/use-settings";
import { open } from "@tauri-apps/plugin-shell";
+import { UpdateBanner } from "@/components/update-banner";
export default function GeneralSettings() {
const { settings, updateSettings } = useSettings();
@@ -57,9 +58,12 @@ export default function GeneralSettings() {
return (
<div className="space-y-8">
<div className="space-y-3">
- <h1 className="text-3xl font-bold tracking-tight text-foreground">
- General Settings
- </h1>
+ <div className="flex items-center justify-between">
+ <h1 className="text-3xl font-bold tracking-tight text-foreground">
+ General Settings
+ </h1>
+ <UpdateBanner compact />
+ </div>
<p className="text-muted-foreground text-lg">
Configure basic application preferences and behavior
</p>
diff --git a/screenpipe-app-tauri/components/update-dialog.tsx b/screenpipe-app-tauri/components/update-dialog.tsx
deleted file mode 100644
index 587a76889..000000000
--- a/screenpipe-app-tauri/components/update-dialog.tsx
+++ /dev/null
@@ -1,147 +0,0 @@
-import { Button } from "@/components/ui/button";
-import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogHeader,
- DialogTitle,
-} from "@/components/ui/dialog";
-import { Download, Sparkles, Clock } from "lucide-react";
-import { create } from "zustand";
-import { useEffect } from "react";
-import { listen } from "@tauri-apps/api/event";
-import { relaunch } from "@tauri-apps/plugin-process";
-import { useToast } from "@/components/ui/use-toast";
-
-interface UpdateInfo {
- version: string;
- body: string;
-}
-
-interface UpdateDialogState {
- isOpen: boolean;
- updateInfo: UpdateInfo | null;
- isInstalling: boolean;
- setIsOpen: (open: boolean) => void;
- setUpdateInfo: (info: UpdateInfo | null) => void;
- setIsInstalling: (installing: boolean) => void;
-}
-
-export const useUpdateDialog = create<UpdateDialogState>((set) => ({
- isOpen: false,
- updateInfo: null,
- isInstalling: false,
- setIsOpen: (open) => set({ isOpen: open }),
- setUpdateInfo: (info) => set({ updateInfo: info }),
- setIsInstalling: (installing) => set({ isInstalling: installing }),
-}));
-
-export function UpdateDialog() {
- const { isOpen, setIsOpen, updateInfo, isInstalling, setIsInstalling } = useUpdateDialog();
- const { toast } = useToast();
-
- const handleUpdate = async () => {
- setIsInstalling(true);
- toast({
- title: "installing update...",
- description: "screenpipe will restart automatically",
- duration: 10000,
- });
-
- // The update is already downloaded on macOS/Linux
- // Trigger restart to apply it
- try {
- await relaunch();
- } catch (error) {
- console.error("failed to relaunch:", error);
- setIsInstalling(false);
- toast({
- title: "update failed",
- description: "please try again or download manually",
- variant: "destructive",
- });
- }
- };
-
- const handleLater = () => {
- setIsOpen(false);
- toast({
- title: "update available",
- description: "click the tray icon to update when ready",
- duration: 5000,
- });
- };
-
- return (
- <Dialog open={isOpen} onOpenChange={setIsOpen}>
- <DialogContent className="max-w-md">
- <DialogHeader>
- <DialogTitle className="flex items-center gap-2">
- <Sparkles className="h-5 w-5 text-primary" />
- update available
- </DialogTitle>
- <DialogDescription>
- screenpipe {updateInfo?.version} is ready to install
- </DialogDescription>
- </DialogHeader>
-
- {updateInfo?.body && (
- <div className="max-h-48 overflow-y-auto rounded-md bg-muted p-3 text-sm">
- <p className="font-medium mb-2">what's new:</p>
- <p className="text-muted-foreground whitespace-pre-wrap">
- {updateInfo.body.slice(0, 500)}
- {updateInfo.body.length > 500 && "..."}
- </p>
- </div>
- )}
-
- <div className="flex gap-2 justify-end pt-2">
- <Button
- variant="ghost"
- onClick={handleLater}
- disabled={isInstalling}
- className="gap-2"
- >
- <Clock className="h-4 w-4" />
- later
- </Button>
- <Button
- onClick={handleUpdate}
- disabled={isInstalling}
- className="gap-2"
- >
- <Download className="h-4 w-4" />
- {isInstalling ? "installing..." : "update now"}
- </Button>
- </div>
- </DialogContent>
- </Dialog>
- );
-}
-
-// Hook to listen for update events from Rust
-export function useUpdateListener() {
- const { setIsOpen, setUpdateInfo } = useUpdateDialog();
-
- useEffect(() => {
- const setupListeners = async () => {
- // Listen for update available event
- const unlistenAvailable = await listen<UpdateInfo>("update-available", (event) => {
- setUpdateInfo(event.payload);
- setIsOpen(true);
- });
-
- // Listen for tray menu click
- const unlistenClick = await listen("update-now-clicked", () => {
- setIsOpen(true);
- });
-
- return () => {
- unlistenAvailable();
- unlistenClick();
- };
- };
-
- setupListeners();
- }, [setIsOpen, setUpdateInfo]);
-}
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 245a88d60..2c9a569af 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -8612,7 +8612,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.0.221"
+version = "2.0.222"
dependencies = [
"anyhow",
"async-stream",
@@ -8692,7 +8692,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.15"
+version = "0.3.16"
dependencies = [
"anyhow",
"bytemuck",
@@ -8740,7 +8740,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.15"
+version = "0.3.16"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -8791,7 +8791,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.15"
+version = "0.3.16"
dependencies = [
"anyhow",
"chrono",
@@ -8815,7 +8815,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.15"
+version = "0.3.16"
dependencies = [
"anyhow",
"chrono",
@@ -8831,7 +8831,7 @@ dependencies = [
[[package]]
name = "screenpipe-integrations"
-version = "0.3.15"
+version = "0.3.16"
dependencies = [
"anyhow",
"image 0.25.5",
@@ -8846,7 +8846,7 @@ dependencies = [
[[package]]
name = "screenpipe-server"
-version = "0.3.15"
+version = "0.3.16"
dependencies = [
"anyhow",
"async-trait",
@@ -8910,7 +8910,7 @@ dependencies = [
[[package]]
name = "screenpipe-vision"
-version = "0.3.15"
+version = "0.3.16"
dependencies = [
"accessibility-sys",
"anyhow",