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
release-app and fix ui clicks
Louis Beaumont48ab3cd2d0ee
diff --git a/screenpipe-app-tauri/app/migration/page.tsx b/screenpipe-app-tauri/app/migration/page.tsxdeleted file mode 100644index 41b3dc944..000000000--- a/screenpipe-app-tauri/app/migration/page.tsx+++ /dev/null@@ -1,142 +0,0 @@-"use client";--import { useEffect, useState, useCallback } from "react";-import { listen } from "@tauri-apps/api/event";-import { motion, useAnimationControls } from "framer-motion";-import { Loader2, Monitor, Mic } from "lucide-react";-import { cn } from "@/lib/utils";--const GAME_HEIGHT = 100;-const JUMP_DURATION = 0.5;--const PixelRunner = () => {- const pixelControls = useAnimationControls();- const [isJumping, setIsJumping] = useState(false);- const [score, setScore] = useState(0);-- const jump = useCallback(async () => {- if (isJumping) return;- setIsJumping(true);- await pixelControls.start({- y: [-40, 0],- transition: { duration: JUMP_DURATION },- });- setIsJumping(false);- }, [isJumping, pixelControls]);-- useEffect(() => {- const handleKeyPress = (e: KeyboardEvent) => {- if (e.code === "Space") {- jump();- }- };- window.addEventListener("keydown", handleKeyPress);- return () => window.removeEventListener("keydown", handleKeyPress);- }, [jump]);-- useEffect(() => {- const interval = setInterval(() => {- setScore((s) => s + 1);- }, 100);- return () => clearInterval(interval);- }, []);-- return (- <div className="relative h-[100px] w-full border-b border-white/20">- {/* Ground with scanlines effect */}- <div className="absolute bottom-0 w-full h-[1px] bg-white/20" />-- {/* Runner */}- <motion.div- animate={pixelControls}- className="absolute bottom-0 left-10"- initial={{ y: 0 }}- >- <div className="w-4 h-4 bg-white rounded-sm" />- </motion.div>-- {/* Obstacles */}- <motion.div- initial={{ x: "100%" }}- animate={{ x: "-100%" }}- transition={{- duration: 2,- repeat: Infinity,- ease: "linear",- }}- className="absolute bottom-0 flex items-center gap-32"- >- <Monitor className="w-6 h-6 text-white/60" />- <Mic className="w-6 h-6 text-white/60" />- </motion.div>-- {/* Score */}- <div className="absolute top-2 right-4 font-mono text-xs text-white/60">- {score}- </div>- </div>- );-};--export default function MigrationProgress() {- const [progress, setProgress] = useState<string>("initializing migration...");-- useEffect(() => {- const unlisten = listen("progress", (event) => {- setProgress(event.payload as string);- });-- return () => {- unlisten.then((fn) => fn());- };- }, []);-- return (- <div className="relative h-screen w-screen flex items-center justify-center bg-black/95">- <motion.div- initial={{ opacity: 0, scale: 0.9 }}- animate={{ opacity: 1, scale: 1 }}- className="relative z-10 flex flex-col items-center gap-6 p-8 w-full max-w-md"- >- <motion.div- animate={{ rotate: 360 }}- transition={{ duration: 2, repeat: Infinity, ease: "linear" }}- >- <Loader2 className="w-8 h-8 text-white" />- </motion.div>-- <div className="w-full">- <PixelRunner />- </div>-- <div className="space-y-2 text-center">- <motion.h3- initial={{ opacity: 0, y: 10 }}- animate={{ opacity: 1, y: 0 }}- className="text-white font-mono text-sm tracking-tight"- >- database migration in progress- </motion.h3>-- <motion.p- initial={{ opacity: 0 }}- animate={{ opacity: 1 }}- transition={{ delay: 0.2 }}- className={cn("text-gray-400 font-mono text-xs", "animate-pulse")}- >- {progress}- </motion.p>-- <motion.p- initial={{ opacity: 0 }}- animate={{ opacity: 1 }}- transition={{ delay: 0.4 }}- className="text-gray-600 font-mono text-xs mt-4"- >- press space to jump- </motion.p>- </div>- </motion.div>- </div>- );-}diff --git a/screenpipe-app-tauri/bun.lockb b/screenpipe-app-tauri/bun.lockbindex 1da664b74..7342a1809 100755Binary files a/screenpipe-app-tauri/bun.lockb and b/screenpipe-app-tauri/bun.lockb differdiff --git a/screenpipe-app-tauri/components/recording-settings.tsx b/screenpipe-app-tauri/components/recording-settings.tsxindex fa6950170..e19d35a79 100644--- a/screenpipe-app-tauri/components/recording-settings.tsx+++ b/screenpipe-app-tauri/components/recording-settings.tsx@@ -630,13 +630,19 @@ export function RecordingSettings() {};const handleIgnoredWindowsChange = (values: string[]) => {// Convert all values to lowercase for comparison- const lowerCaseValues = values.map(v => v.toLowerCase());- const currentLowerCase = settings.ignoredWindows.map(v => v.toLowerCase());+ const lowerCaseValues = values.map((v) => v.toLowerCase());+ const currentLowerCase = settings.ignoredWindows.map((v) =>+ v.toLowerCase()+ );// Find added values (in values but not in current)- const addedValues = values.filter(v => !currentLowerCase.includes(v.toLowerCase()));+ const addedValues = values.filter(+ (v) => !currentLowerCase.includes(v.toLowerCase())+ );// Find removed values (in current but not in values)- const removedValues = settings.ignoredWindows.filter(v => !lowerCaseValues.includes(v.toLowerCase()));+ const removedValues = settings.ignoredWindows.filter(+ (v) => !lowerCaseValues.includes(v.toLowerCase())+ );if (addedValues.length > 0) {// Handle adding new value@@ -645,27 +651,35 @@ export function RecordingSettings() {ignoredWindows: [...settings.ignoredWindows, newValue],// Remove from included windows if presentincludedWindows: settings.includedWindows.filter(- w => w.toLowerCase() !== newValue.toLowerCase()+ (w) => w.toLowerCase() !== newValue.toLowerCase()),});} else if (removedValues.length > 0) {// Handle removing valueconst removedValue = removedValues[0];handleSettingsChange({- ignoredWindows: settings.ignoredWindows.filter(w => w !== removedValue),+ ignoredWindows: settings.ignoredWindows.filter(+ (w) => w !== removedValue+ ),});}};const handleIncludedWindowsChange = (values: string[]) => {// Convert all values to lowercase for comparison- const lowerCaseValues = values.map(v => v.toLowerCase());- const currentLowerCase = settings.includedWindows.map(v => v.toLowerCase());+ const lowerCaseValues = values.map((v) => v.toLowerCase());+ const currentLowerCase = settings.includedWindows.map((v) =>+ v.toLowerCase()+ );// Find added values (in values but not in current)- const addedValues = values.filter(v => !currentLowerCase.includes(v.toLowerCase()));+ const addedValues = values.filter(+ (v) => !currentLowerCase.includes(v.toLowerCase())+ );// Find removed values (in current but not in values)- const removedValues = settings.includedWindows.filter(v => !lowerCaseValues.includes(v.toLowerCase()));+ const removedValues = settings.includedWindows.filter(+ (v) => !lowerCaseValues.includes(v.toLowerCase())+ );if (addedValues.length > 0) {// Handle adding new value@@ -674,14 +688,16 @@ export function RecordingSettings() {includedWindows: [...settings.includedWindows, newValue],// Remove from ignored windows if presentignoredWindows: settings.ignoredWindows.filter(- w => w.toLowerCase() !== newValue.toLowerCase()+ (w) => w.toLowerCase() !== newValue.toLowerCase()),});} else if (removedValues.length > 0) {// Handle removing valueconst removedValue = removedValues[0];handleSettingsChange({- includedWindows: settings.includedWindows.filter(w => w !== removedValue),+ includedWindows: settings.includedWindows.filter(+ (w) => w !== removedValue+ ),});}};diff --git a/screenpipe-app-tauri/components/settings/ai-section.tsx b/screenpipe-app-tauri/components/settings/ai-section.tsxindex 1c6037eb4..998016c3e 100644--- a/screenpipe-app-tauri/components/settings/ai-section.tsx+++ b/screenpipe-app-tauri/components/settings/ai-section.tsx@@ -440,7 +440,7 @@ const AISection = () => {/><CommandList><CommandEmpty>- press enter to use "{settings.aiModel}"+ press enter to use "{settings.aiModel}"</CommandEmpty><CommandGroup heading="Suggestions">{getModelSuggestions(settings.aiProviderType)?.map(diff --git a/screenpipe-app-tauri/components/ui/command.tsx b/screenpipe-app-tauri/components/ui/command.tsxindex 1a37e67d6..48c9a90a9 100644--- a/screenpipe-app-tauri/components/ui/command.tsx+++ b/screenpipe-app-tauri/components/ui/command.tsx@@ -1,12 +1,12 @@-"use client"+"use client";-import * as React from "react"-import { type DialogProps } from "@radix-ui/react-dialog"-import { Command as CommandPrimitive } from "cmdk"-import { Search } from "lucide-react"+import * as React from "react";+import { type DialogProps } from "@radix-ui/react-dialog";+import { Command as CommandPrimitive } from "cmdk";+import { Search } from "lucide-react";-import { cn } from "@/lib/utils"-import { Dialog, DialogContent } from "@/components/ui/dialog"+import { cn } from "@/lib/utils";+import { Dialog, DialogContent } from "@/components/ui/dialog";const Command = React.forwardRef<React.ElementRef<typeof CommandPrimitive>,@@ -20,8 +20,8 @@ const Command = React.forwardRef<)}{...props}/>-))-Command.displayName = CommandPrimitive.displayName+));+Command.displayName = CommandPrimitive.displayName;interface CommandDialogProps extends DialogProps {}@@ -34,8 +34,8 @@ const CommandDialog = ({ children, ...props }: CommandDialogProps) => {</Command></DialogContent></Dialog>- )-}+ );+};const CommandInput = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Input>,@@ -52,9 +52,9 @@ const CommandInput = React.forwardRef<{...props}/></div>-))+));-CommandInput.displayName = CommandPrimitive.Input.displayName+CommandInput.displayName = CommandPrimitive.Input.displayName;const CommandList = React.forwardRef<React.ElementRef<typeof CommandPrimitive.List>,@@ -65,9 +65,9 @@ const CommandList = React.forwardRef<className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}{...props}/>-))+));-CommandList.displayName = CommandPrimitive.List.displayName+CommandList.displayName = CommandPrimitive.List.displayName;const CommandEmpty = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Empty>,@@ -78,9 +78,9 @@ const CommandEmpty = React.forwardRef<className="py-6 text-center text-sm"{...props}/>-))+));-CommandEmpty.displayName = CommandPrimitive.Empty.displayName+CommandEmpty.displayName = CommandPrimitive.Empty.displayName;const CommandGroup = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Group>,@@ -94,9 +94,9 @@ const CommandGroup = React.forwardRef<)}{...props}/>-))+));-CommandGroup.displayName = CommandPrimitive.Group.displayName+CommandGroup.displayName = CommandPrimitive.Group.displayName;const CommandSeparator = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Separator>,@@ -107,8 +107,8 @@ const CommandSeparator = React.forwardRef<className={cn("-mx-1 h-px bg-border", className)}{...props}/>-))-CommandSeparator.displayName = CommandPrimitive.Separator.displayName+));+CommandSeparator.displayName = CommandPrimitive.Separator.displayName;const CommandItem = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Item>,@@ -117,14 +117,14 @@ const CommandItem = React.forwardRef<<CommandPrimitive.Itemref={ref}className={cn(- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled='true']:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",className)}{...props}/>-))+));-CommandItem.displayName = CommandPrimitive.Item.displayName+CommandItem.displayName = CommandPrimitive.Item.displayName;const CommandShortcut = ({className,@@ -138,9 +138,9 @@ const CommandShortcut = ({)}{...props}/>- )-}-CommandShortcut.displayName = "CommandShortcut"+ );+};+CommandShortcut.displayName = "CommandShortcut";export {Command,@@ -152,4 +152,4 @@ export {CommandItem,CommandShortcut,CommandSeparator,-}+};diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsxindex e6025e680..56ad5ef5a 100644--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx@@ -177,7 +177,12 @@ export interface StoreModel {function createDefaultSettingsObject(): Settings {let defaultSettings = { ...DEFAULT_SETTINGS };- const currentPlatform = platform();+ let currentPlatform = "unknown";+ try {+ currentPlatform = platform() || "unknown";+ } catch (e) {+ console.warn("platform detection failed, defaulting to unknown");+ }const ocrModel =currentPlatform === "macos"diff --git a/screenpipe-app-tauri/package.json b/screenpipe-app-tauri/package.jsonindex 5e28ef50e..dc37455d0 100644--- a/screenpipe-app-tauri/package.json+++ b/screenpipe-app-tauri/package.json@@ -58,7 +58,7 @@"ansi-to-html": "^0.7.2","class-variance-authority": "^0.7.0","clsx": "^2.1.1",- "cmdk": "1.0.0",+ "cmdk": "0.2.1","date-fns": "^3.6.0","easy-peasy": "^6.0.5","framer-motion": "^11.5.4",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex eb23c6ef0..ec776c9fe 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.19.4"+version = "0.19.5"description = ""authors = ["you"]license = ""