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 fix #1274
Louis Beaumont0a1770150b10
diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsxindex ab324a5ef..397680ba1 100644--- a/screenpipe-app-tauri/components/pipe-store.tsx+++ b/screenpipe-app-tauri/components/pipe-store.tsx@@ -172,6 +172,12 @@ export const PipeStore: React.FC = () => {title: "purchase & install successful",description: "payment processed with saved card",});+ } else if (response.data.already_purchased) {+ await handleInstallPipe(pipe);+ toast({+ title: "pipe already purchased",+ description: "installing pipe...",+ });} else if (response.data.used_credits) {await handleInstallPipe(pipe);toast({@@ -883,14 +889,24 @@ export const PipeStore: React.FC = () => {return;}- toast({- title: "purchase successful",- description: "installing your new pipe...",- });-await new Promise((resolve) => setTimeout(resolve, 1000));- fetchPurchaseHistory();+ // First update purchase history to reflect the new purchase+ await fetchPurchaseHistory();++ // Find the pipe in the store+ const purchasedPipe = pipes.find((pipe) => pipe.id === pipeId);+ if (!purchasedPipe) {+ toast({+ title: "error installing pipe",+ description: "could not find the purchased pipe",+ variant: "destructive",+ });+ return;+ }++ // Install the pipe+ await handleInstallPipe(purchasedPipe);}}});@@ -905,7 +921,7 @@ export const PipeStore: React.FC = () => {return () => {if (deepLinkUnsubscribe) deepLinkUnsubscribe();};- }, []);+ }, [pipes]);if (health?.status === "error") {return (diff --git a/screenpipe-app-tauri/lib/api/store/index.ts b/screenpipe-app-tauri/lib/api/store/index.tsindex b795bba8f..347f8c9ab 100644--- a/screenpipe-app-tauri/lib/api/store/index.ts+++ b/screenpipe-app-tauri/lib/api/store/index.ts@@ -48,6 +48,7 @@ interface PurchaseUrlResponse {checkout_url?: string;used_credits?: boolean;payment_successful?: boolean;+ already_purchased?: boolean;};}diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 8f6d453ea..84c4f356e 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.30.10"+version = "0.31.0"description = ""authors = ["you"]license = ""