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
fix: override pipe preset with user's default on store install
Louis Beaumontbee49f1e74eb
diff --git a/apps/screenpipe-app-tauri/components/pipe-store.tsx b/apps/screenpipe-app-tauri/components/pipe-store.tsxindex 50c45ea25..01a66d804 100644--- a/apps/screenpipe-app-tauri/components/pipe-store.tsx+++ b/apps/screenpipe-app-tauri/components/pipe-store.tsx@@ -438,13 +438,29 @@ function DiscoverView() {const data = await res.json();if (!res.ok || data.error) throw new Error(data.error || `HTTP ${res.status}`);posthog.capture("pipe_installed_from_store", { slug });++ // Override the pipe's preset with the user's default preset so it+ // works out of the box (published pipes may reference presets the+ // user doesn't have).+ const pipeName = data.name || slug;+ const defaultPreset = settings.aiPresets?.find((p: any) => p.defaultPreset);+ if (defaultPreset?.id) {+ try {+ await fetch(`http://localhost:3030/pipes/${pipeName}/config`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ preset: defaultPreset.id }),+ });+ } catch {}+ }+toast({- title: `"${data.name || slug}" installed`,+ title: `"${pipeName}" installed`,description: "switch to my pipes to configure and run it",});// Invalidate cache and update installed namesapiCache.invalidate("pipes/installed");- setInstalledNames((prev) => new Set([...prev, data.name || slug]));+ setInstalledNames((prev) => new Set([...prev, pipeName]));} catch (err: any) {toast({title: "failed to install pipe",