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

release-app-force

Louis Beaumont2b885b0629f4
diff --git a/screenpipe-app-tauri/components/header.tsx b/screenpipe-app-tauri/components/header.tsx
index 65f4870bf..aa45d653f 100644
--- a/screenpipe-app-tauri/components/header.tsx
+++ b/screenpipe-app-tauri/components/header.tsx
@@ -34,28 +34,16 @@ import { useState, useEffect } from "react";
import { useOnboarding } from "@/lib/hooks/use-onboarding";
import { listen } from "@tauri-apps/api/event";
import localforage from "localforage";
-import { useHealthCheck } from "@/lib/hooks/use-health-check";
-import { Skeleton } from "@/components/ui/skeleton";
import { useChangelogDialog } from "@/lib/hooks/use-changelog-dialog";
-import { useSettings } from "@/lib/hooks/use-settings";
-import { useUser } from "@/lib/hooks/use-user";
import {
Dialog,
DialogContent,
- DialogHeader,
- DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog";
export default function Header() {
const [showInbox, setShowInbox] = useState(false);
const [messages, setMessages] = useState<Message[]>([]);
- const { health } = useHealthCheck();
- const { settings } = useSettings();
- const { user } = useUser();
-
- // const isLoading = !health;
- const isLoading = false; // ! testing - had issue with this before
useEffect(() => {
const loadMessages = async () => {
@@ -123,145 +111,120 @@ export default function Header() {
return (
<div>
- {isLoading ? (
- <HeaderSkeleton />
- ) : (
- <>
- <div className="relative z-[-1] flex flex-col items-center">
- <div className="relative flex flex-col items-center before:absolute before:h-[300px] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 sm:before:w-[480px] sm:after:w-[240px] before:lg:h-[360px] gap-4">
- <div className="w-[180px] h-[50px]" />
- </div>
- </div>
- <div className="flex space-x-4 absolute top-4 right-4">
- <HealthStatus className="mt-3 cursor-pointer" />
+ <div className="relative z-[-1] flex flex-col items-center">
+ <div className="relative flex flex-col items-center before:absolute before:h-[300px] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 sm:before:w-[480px] sm:after:w-[240px] before:lg:h-[360px] gap-4">
+ <div className="w-[180px] h-[50px]" />
+ </div>
+ </div>
+ <div className="flex space-x-4 absolute top-4 right-4">
+ <HealthStatus className="mt-3 cursor-pointer" />
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={() => setShowInbox(!showInbox)}
+ className="cursor-pointer h-8 w-8 p-0"
+ >
+ <Bell className="h-4 w-4" />
+ <span className="sr-only">notifications</span>
+ </Button>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
<Button
variant="ghost"
size="icon"
- onClick={() => setShowInbox(!showInbox)}
className="cursor-pointer h-8 w-8 p-0"
>
- <Bell className="h-4 w-4" />
- <span className="sr-only">notifications</span>
+ <User className="h-4 w-4" />
+ <span className="sr-only">user menu</span>
</Button>
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <Button
- variant="ghost"
- size="icon"
- className="cursor-pointer h-8 w-8 p-0"
- >
- <User className="h-4 w-4" />
- <span className="sr-only">user menu</span>
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent className="mr-4" align="end">
- <DropdownMenuLabel>account</DropdownMenuLabel>
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <Dialog>
- <DialogTrigger asChild>
- <DropdownMenuItem
- onSelect={(e) => e.preventDefault()}
- className="cursor-pointer p-1.5"
- >
- <Settings2 className="mr-2 h-4 w-4" />
- <span>settings</span>
- </DropdownMenuItem>
- </DialogTrigger>
-
- <DialogContent
- className="max-w-[80vw] w-full max-h-[80vh] h-full overflow-hidden p-0 [&>button]:hidden"
- onClick={(e) => e.stopPropagation()}
- >
-
- <Settings />
- </DialogContent>
- </Dialog>
- </DropdownMenuGroup>
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <DropdownMenuItem
- className="cursor-pointer"
- onClick={() => open("https://docs.screenpi.pe")}
- >
- <Book className="mr-2 h-4 w-4" />
- <span>check docs</span>
- </DropdownMenuItem>
- <DropdownMenuItem
- className="cursor-pointer"
- onClick={() =>
- open(
- "mailto:[email protected]?subject=Screenpipe%20Feedback&body=Please%20enter%20your%20feedback%20here...%0A%0A...%20or%20let's%20chat?%0Ahttps://cal.com/louis030195/screenpipe"
- )
- }
- >
- <MessageSquare className="mr-2 h-4 w-4" />
- <span>send feedback</span>
- </DropdownMenuItem>
- <DropdownMenuItem
- className="cursor-pointer"
- onClick={() =>
- open(
- "https://twitter.com/intent/tweet?text=here's%20how%20i%20use%20@screen_pipe%20...%20%5Bscreenshot%5D%20an%20awesome%20tool%20for%20..."
- )
- }
- >
- <Heart className="mr-2 h-4 w-4" />
- <span>support us</span>
- </DropdownMenuItem>
- </DropdownMenuGroup>
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <DropdownMenuItem
- className="cursor-pointer"
- onClick={() => setShowOnboarding(true)}
- >
- <Play className="mr-2 h-4 w-4" />
- <span>show onboarding</span>
- </DropdownMenuItem>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent className="mr-4" align="end">
+ <DropdownMenuLabel>account</DropdownMenuLabel>
+ <DropdownMenuSeparator />
+ <DropdownMenuGroup>
+ <Dialog modal={true}>
+ <DialogTrigger asChild>
<DropdownMenuItem
- className="cursor-pointer"
- onClick={() => setShowChangelogDialog(true)}
+ onSelect={(e) => e.preventDefault()}
+ className="cursor-pointer p-1.5"
>
- <Folder className="mr-2 h-4 w-4" />
- <span>show changelog</span>
+ <Settings2 className="mr-2 h-4 w-4" />
+ <span>settings</span>
</DropdownMenuItem>
- </DropdownMenuGroup>
- </DropdownMenuContent>
- </DropdownMenu>
- </div>
- {showInbox && (
- <div className="absolute right-4 top-16 z-50 bg-white shadow-lg rounded-lg">
- <InboxMessages
- messages={messages}
- onMessageRead={handleMessageRead}
- onMessageDelete={handleMessageDelete}
- onClearAll={handleClearAll}
- onClose={() => setShowInbox(false)}
- />
- </div>
- )}
- </>
- )}
- </div>
- );
-}
+ </DialogTrigger>
-function HeaderSkeleton() {
- return (
- <div className="w-full">
- <div className="flex justify-center">
- <Skeleton className="w-[180px] h-[50px] mt-4" />
- </div>
- <div className="flex space-x-4 absolute top-4 right-4">
- <Skeleton className="w-8 h-8 rounded-full" />
- <Skeleton className="w-8 h-8 rounded-full" />
- <Skeleton className="w-8 h-8 rounded-full" />
- <Skeleton className="w-8 h-8 rounded-full" />
- <Skeleton className="w-8 h-8 rounded-full" />
- <Skeleton className="w-8 h-8 rounded-full" />
+ <DialogContent
+ className="max-w-[80vw] w-full max-h-[80vh] h-full overflow-hidden p-0 [&>button]:hidden"
+ onClick={(e) => e.stopPropagation()}
+ >
+ <Settings />
+ </DialogContent>
+ </Dialog>
+ </DropdownMenuGroup>
+ <DropdownMenuSeparator />
+ <DropdownMenuGroup>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() => open("https://docs.screenpi.pe")}
+ >
+ <Book className="mr-2 h-4 w-4" />
+ <span>check docs</span>
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() =>
+ open(
+ "mailto:[email protected]?subject=Screenpipe%20Feedback&body=Please%20enter%20your%20feedback%20here...%0A%0A...%20or%20let's%20chat?%0Ahttps://cal.com/louis030195/screenpipe"
+ )
+ }
+ >
+ <MessageSquare className="mr-2 h-4 w-4" />
+ <span>send feedback</span>
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() =>
+ open(
+ "https://twitter.com/intent/tweet?text=here's%20how%20i%20use%20@screen_pipe%20...%20%5Bscreenshot%5D%20an%20awesome%20tool%20for%20..."
+ )
+ }
+ >
+ <Heart className="mr-2 h-4 w-4" />
+ <span>support us</span>
+ </DropdownMenuItem>
+ </DropdownMenuGroup>
+ <DropdownMenuSeparator />
+ <DropdownMenuGroup>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() => setShowOnboarding(true)}
+ >
+ <Play className="mr-2 h-4 w-4" />
+ <span>show onboarding</span>
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() => setShowChangelogDialog(true)}
+ >
+ <Folder className="mr-2 h-4 w-4" />
+ <span>show changelog</span>
+ </DropdownMenuItem>
+ </DropdownMenuGroup>
+ </DropdownMenuContent>
+ </DropdownMenu>
</div>
+ {showInbox && (
+ <div className="absolute right-4 top-16 z-50 bg-white shadow-lg rounded-lg">
+ <InboxMessages
+ messages={messages}
+ onMessageRead={handleMessageRead}
+ onMessageDelete={handleMessageDelete}
+ onClearAll={handleClearAll}
+ onClose={() => setShowInbox(false)}
+ />
+ </div>
+ )}
</div>
);
}
diff --git a/screenpipe-app-tauri/components/recording-settings.tsx b/screenpipe-app-tauri/components/recording-settings.tsx
index 80715be3a..b4ce01b02 100644
--- a/screenpipe-app-tauri/components/recording-settings.tsx
+++ b/screenpipe-app-tauri/components/recording-settings.tsx
@@ -273,6 +273,8 @@ export function RecordingSettings() {
await invoke("kill_all_sreenpipes");
+ await new Promise((resolve) => setTimeout(resolve, 1000));
+
// Start a new instance with updated settings
await invoke("spawn_screenpipe");
await new Promise((resolve) => setTimeout(resolve, 2000));
@@ -281,6 +283,8 @@ export function RecordingSettings() {
title: "settings updated successfully",
description: "screenpipe has been restarted with new settings.",
});
+
+ window.location.reload();
} catch (error) {
console.error("failed to update settings:", error);
toast({
@@ -951,9 +955,9 @@ export function RecordingSettings() {
<div className="flex flex-col space-y-2">
<Label
htmlFor="audioTranscriptionModel"
- className="flex items-center"
+ className="flex items-center space-x-2"
>
- <Mic className="pl-2 h-4 w-4" />
+ <Mic className="h-4 w-4" />
<span>audio transcription model</span>
</Label>
<Select
@@ -1081,7 +1085,7 @@ export function RecordingSettings() {
<CommandItem
key={device.name}
value={device.name}
- onSelect={handleAudioDeviceChange}
+ onSelect={() => handleAudioDeviceChange(device.name)}
>
<div className="flex items-center">
<Check
diff --git a/screenpipe-app-tauri/components/screenpipe-status.tsx b/screenpipe-app-tauri/components/screenpipe-status.tsx
index 70c72eabe..a5b126259 100644
--- a/screenpipe-app-tauri/components/screenpipe-status.tsx
+++ b/screenpipe-app-tauri/components/screenpipe-status.tsx
@@ -5,54 +5,29 @@ import {
DialogContent,
DialogHeader,
DialogTitle,
- DialogTrigger,
} from "@/components/ui/dialog";
-import { CodeBlock } from "@/components/ui/codeblock";
import { platform } from "@tauri-apps/plugin-os";
-import { MarkdownWithExternalLinks } from "./markdown-with-external-links";
import { Badge } from "./ui/badge";
-import { Label } from "./ui/label";
-import { Switch } from "./ui/switch";
-import { useSettings } from "@/lib/hooks/use-settings";
import { invoke } from "@tauri-apps/api/core";
import { toast, useToast } from "./ui/use-toast";
-import {
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
-} from "./ui/tooltip";
+
import { Button } from "./ui/button";
import { Separator } from "./ui/separator";
-import { Card, CardContent, CardFooter } from "./ui/card";
import { useHealthCheck } from "@/lib/hooks/use-health-check";
-import {
- Lock,
- Folder,
- FileText,
- Activity,
- Wrench,
- RefreshCw,
- HardDrive,
- HelpCircle,
-} from "lucide-react";
+import { Lock, Folder, Activity } from "lucide-react";
import { open } from "@tauri-apps/plugin-shell";
-import { homeDir } from "@tauri-apps/api/path";
import LogViewer from "./log-viewer-v2";
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@/components/ui/collapsible";
-import { Command } from "@tauri-apps/plugin-shell";
-import { CliCommandDialog } from "./cli-command-dialog";
import { LogFileButton } from "./log-file-button";
import { DevModeSettings } from "./dev-mode-settings";
-import { ChevronLeft, ChevronRight } from "lucide-react";
-import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";
import { Loader2 } from "lucide-react";
import { cn } from "@/lib/utils";
import { Check, X } from "lucide-react";
+import { useSettings } from "@/lib/hooks/use-settings";
type PermissionsStatus = {
screenRecording: string;
@@ -172,18 +147,16 @@ const HealthStatus = ({ className }: { className?: string }) => {
);
const handleOpenStatusDialog = async () => {
- if (isDialogLoading) return; // Prevent multiple clicks while loading
-
try {
setIsDialogLoading(true);
const dir = await getDataDir();
setLocalDataDir(dir);
setIsDialogOpen(true);
} catch (error) {
- console.error("Failed to open status dialog:", error);
+ console.error("failed to open status dialog:", error);
toast({
- title: "Error",
- description: "Failed to open status dialog. Please try again.",
+ title: "error",
+ description: "failed to open status dialog. please try again.",
variant: "destructive",
duration: 3000,
});
@@ -253,19 +226,13 @@ const HealthStatus = ({ className }: { className?: string }) => {
return (
<>
<Badge
- variant="outline"
+ variant="default"
className={cn(
- "cursor-pointer bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",
- isDialogLoading && "opacity-50 pointer-events-none"
+ "cursor-pointer bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground"
)}
onClick={handleOpenStatusDialog}
>
- {isDialogLoading ? (
- <Loader2 className="mr-2 h-4 w-4 animate-spin" />
- ) : (
- <Activity className="mr-2 h-4 w-4" />
- )}
- status{" "}
+ <Activity className="mr-2 h-4 w-4" />
<span
className={`ml-1 w-2 h-2 rounded-full ${statusColor} inline-block ${
statusColor === "bg-red-500" ? "animate-pulse" : ""
@@ -307,7 +274,8 @@ const HealthStatus = ({ className }: { className?: string }) => {
/>
<span className="text-sm">screen recording</span>
<span className="text-sm text-muted-foreground">
- status: {health ? health.frame_status : "error"}, last update:{" "}
+ status: {health ? health.frame_status : "error"}, last
+ update:{" "}
{formatTimestamp(health?.last_frame_timestamp ?? null)}
</span>
</div>
@@ -347,7 +315,11 @@ const HealthStatus = ({ className }: { className?: string }) => {
<span className="text-sm">audio recording</span>
<span className="text-sm text-muted-foreground">
status:{" "}
- {settings.disableAudio ? "turned off" : health ? health.audio_status : "error"}
+ {settings.disableAudio
+ ? "turned off"
+ : health
+ ? health.audio_status
+ : "error"}
, last update:{" "}
{settings.disableAudio
? "n/a"
@@ -390,7 +362,9 @@ const HealthStatus = ({ className }: { className?: string }) => {
<span className="text-sm">ui monitoring</span>
<span className="text-sm text-muted-foreground">
status: {health?.ui_status}, last update:{" "}
- {formatTimestamp(health ? health.last_ui_timestamp : "error" )}
+ {formatTimestamp(
+ health ? health.last_ui_timestamp : "error"
+ )}
</span>
</div>
<div className="flex items-center gap-2">
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index ba1e3a4bc..2f44f1a78 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -301,7 +301,14 @@ export function useSettings() {
)
return settings.dataDir;
- return platform() === "macos" || platform() === "linux"
+ let p = "macos";
+ try {
+ p = platform();
+ } catch (e) {
+ console.error("failed to get platform", e);
+ }
+
+ return p === "macos" || p === "linux"
? `${homeDirPath}/.screenpipe`
: `${homeDirPath}\\.screenpipe`;
};
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index ed1c42d10..2ca3f610a 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.20.2"
+version = "0.20.3"
description = ""
authors = ["you"]
license = ""