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
Bump app to v2.0.584
Louis Beaumont00efb3efb10f
diff --git a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsxindex cf62cfd1d..e637a929f 100644--- a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx@@ -701,6 +701,16 @@ interface AIPresetsSelectorProps {shortcutKey?: string;onPresetChange?: (preset: AIPreset) => void;showLoginCta?: boolean;+ /** Controlled mode: override which preset id is shown as selected */+ controlledPresetId?: string | null;+ /** Controlled mode: callback when user picks a preset (null = "none") */+ onControlledSelect?: (presetId: string | null) => void;+ /** Show a "none" option at the top of the list */+ allowNone?: boolean;+ /** Label shown for the none option */+ noneLabel?: string;+ /** Compact size variant for inline usage */+ compact?: boolean;}export const AIPresetDialog = ({@@ -773,6 +783,11 @@ export const AIPresetsSelector = ({shortcutKey = "/",onPresetChange,showLoginCta = true,+ controlledPresetId,+ onControlledSelect,+ allowNone = false,+ noneLabel = "none (use pipe defaults)",+ compact = false,}: AIPresetsSelectorProps) => {const { settings, updateSettings } = useSettings();const [open, setOpen] = useState(false);@@ -781,16 +796,19 @@ export const AIPresetsSelector = ({AIPreset | undefined>();+ const isControlled = onControlledSelect !== undefined;+// eslint-disable-next-line react-hooks/exhaustive-depsconst aiPresets = (settings?.aiPresets || []) as AIPreset[];const selectedPreset = useMemo(() => {+ if (isControlled) return controlledPresetId ?? undefined;// Use the first preset or default presetconst defaultPreset = settings?.aiPresets?.find((preset) => preset.defaultPreset,);return defaultPreset?.id || settings?.aiPresets?.[0]?.id || undefined;- }, [settings?.aiPresets]);+ }, [settings?.aiPresets, isControlled, controlledPresetId]);// Check if selected preset requires loginconst selectedPresetRequiresLogin = useMemo(() => {@@ -1017,7 +1035,7 @@ export const AIPresetsSelector = ({return (<><div className="flex flex-col w-full gap-2">- {selectedPresetRequiresLogin && (+ {!isControlled && selectedPresetRequiresLogin && (<div className="flex items-center gap-2 p-2 text-sm bg-amber-500/10 border border-amber-500/20 rounded-lg"><AlertTriangle className="h-4 w-4 text-amber-500 shrink-0" /><span className="text-amber-600 dark:text-amber-400 flex-1">@@ -1049,6 +1067,7 @@ export const AIPresetsSelector = ({aria-expanded={open}className={cn("w-full justify-between",+ compact && "h-8 text-xs",selectedPresetRequiresLogin && "border-amber-500/50")}>@@ -1091,6 +1110,8 @@ export const AIPresetsSelector = ({</span></div></div>+ ) : allowNone && isControlled ? (+ <span className="text-muted-foreground">{noneLabel}</span>) : ("select ai preset...")}@@ -1119,6 +1140,27 @@ export const AIPresetsSelector = ({<CommandInput placeholder="search presets..." /><CommandList><CommandEmpty>no presets found.</CommandEmpty>+ {allowNone && (+ <CommandGroup>+ <CommandItem+ value="__none__"+ onSelect={() => {+ if (isControlled) {+ onControlledSelect(null);+ }+ setOpen(false);+ }}+ >+ <Check+ className={cn(+ "h-4 w-4 shrink-0 mr-2",+ !selectedPreset ? "opacity-100" : "opacity-0",+ )}+ />+ <span className="text-muted-foreground">{noneLabel}</span>+ </CommandItem>+ </CommandGroup>+ )}{recommendedPresets && recommendedPresets.length > 0 && (<CommandGroup heading="Recommended Presets">{recommendedPresets.map((preset) => (@@ -1193,13 +1235,15 @@ export const AIPresetsSelector = ({<CommandItemkey={preset.id}value={preset.id}- onSelect={(currentValue) => {- // Set the selected preset as default- const selectedPresetObj = aiPresets.find(p => p.id === currentValue);- if (selectedPresetObj && selectedPresetObj.id !== selectedPreset) {+ onSelect={() => {+ // Use preset from closure — cmdk lowercases the value+ // so string comparison against preset.id would fail+ if (isControlled) {+ onControlledSelect(preset.id);+ } else if (preset.id !== selectedPreset) {const updatedPresets = aiPresets.map((p) => ({...p,- defaultPreset: p.id === currentValue,+ defaultPreset: p.id === preset.id,}));updateSettings({@@ -1207,7 +1251,7 @@ export const AIPresetsSelector = ({});toast.success("Preset selected", {- description: `${selectedPresetObj.id} is now active`,+ description: `${preset.id} is now active`,});}setOpen(false);diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-dock-section.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-dock-section.tsxindex 26b1a3512..2b8187ee6 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-dock-section.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-dock-section.tsx@@ -280,7 +280,7 @@ export function TimelineIconsSection({return (<>- <div className="absolute -top-8 inset-x-0 h-8">+ <div className="absolute -top-12 inset-x-0 h-12">{blocksWithIcons.map((block, i) => {const bgColor = stringToColor(block.appName);diff --git a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsxindex 453831b23..1bad898bd 100644--- a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx+++ b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx@@ -1133,7 +1133,7 @@ const AISection = ({<div key={key} className="flex items-start gap-2"><div className="flex items-center gap-2 min-w-[180px]">{result.status === "pass" ? (- <CheckCircle2 className="h-4 w-4 text-green-500 shrink-0" />+ <CheckCircle2 className="h-4 w-4 text-foreground shrink-0" />) : result.status === "fail" ? (<XCircle className="h-4 w-4 text-destructive shrink-0" />) : result.status === "running" ? (diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsxindex 156ec2b23..39f4f25e0 100644--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx@@ -42,6 +42,7 @@ import {DropdownMenuTrigger,} from "@/components/ui/dropdown-menu";import { useSettings } from "@/lib/hooks/use-settings";+import { AIPresetsSelector } from "@/components/rewind/ai-presets-selector";import { useTeam } from "@/lib/hooks/use-team";import { useToast } from "@/components/ui/use-toast";import { UpgradeDialog } from "@/components/upgrade-dialog";@@ -981,10 +982,12 @@ export function PipesSection() {<div className="mt-4 space-y-4 border-t pt-4"><div><Label className="text-xs">ai preset</Label>- <select- value={pipe.config.preset || ""}- onChange={(e) => {- const val = e.target.value;+ <AIPresetsSelector+ compact+ allowNone+ controlledPresetId={pipe.config.preset || null}+ onControlledSelect={(presetId) => {+ const val = presetId || "";const pipeName = pipe.config.name;// Optimistic update — reflect immediately in UIsetPipes((prev) =>@@ -1007,16 +1010,7 @@ export function PipesSection() {});pendingConfigSaves.current[pipeName] = savePromise;}}- className="w-full h-8 text-xs border rounded px-2 bg-background"- >- <option value="">none (use pipe defaults)</option>- {(settings.aiPresets || []).map((p: any) => (- <option key={p.id} value={p.id}>- {p.id} — {p.model} ({p.provider})- {p.defaultPreset ? " ★" : ""}- </option>- ))}- </select>+ /><p className="text-[11px] text-muted-foreground mt-1">uses model & provider from your ai settings preset</p>diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex ce439ee68..04623f021 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.0.583"+version = "2.0.584"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""