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 tune the update in background

Louis Beaumont89a1b5c84a3e
diff --git a/pipes/search/package.json b/pipes/search/package.json
index b5f142af9..3368e6f24 100644
--- a/pipes/search/package.json
+++ b/pipes/search/package.json
@@ -1,6 +1,6 @@
{
"name": "search",
- "version": "0.1.8",
+ "version": "0.1.10",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
diff --git a/pipes/search/src/components/search-chat.tsx b/pipes/search/src/components/search-chat.tsx
index 3435ed35a..30b7168ab 100644
--- a/pipes/search/src/components/search-chat.tsx
+++ b/pipes/search/src/components/search-chat.tsx
@@ -1505,7 +1505,7 @@ export function SearchChat() {
open={isQueryParamsDialogOpen}
onOpenChange={setIsQueryParamsDialogOpen}
>
- <DialogContent className="sm:max-w-[605px]">
+ <DialogContent className="sm:max-w-[605px] max-h-[80vh] overflow-y-auto">
<DialogHeader>
<DialogTitle>advanced search parameters</DialogTitle>
<DialogDescription>
diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsx
index f7f01ee31..f23209ae3 100644
--- a/screenpipe-app-tauri/components/pipe-store.tsx
+++ b/screenpipe-app-tauri/components/pipe-store.tsx
@@ -78,8 +78,43 @@ export const PipeStore: React.FC = () => {
useEffect(() => {
const unsubscribePromise = listen("update-all-pipes", async () => {
+ // not sure this is a good idea ... basically pipes will break in the hand of users when update will happen
if (!checkLogin(settings.user, false)) return;
- await handleUpdateAllPipes(true);
+ console.log("updating all pipes");
+
+ for (const pipe of pipes) {
+ const currentVersion = pipe.installed_config?.version!;
+ const storeApi = await PipeApi.create(settings.user!.token!);
+ const update = await storeApi.checkUpdate(pipe.id, currentVersion);
+ if (!update.has_update) {
+ continue;
+ }
+
+ // First delete the pipe
+ await handleDeletePipe(pipe);
+
+ // Then download the new version
+ if (pipe.installed_config?.source) {
+ await handleInstallPipe(pipe);
+
+ // Enable the pipe after installation
+ const response = await fetch(`http://localhost:3030/pipes/enable`, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({ pipe_id: pipe.name }),
+ });
+
+ const data = await response.json();
+ if (!data.success) {
+ console.warn("failed to enable pipe:", data.error);
+ }
+ }
+ }
+
+ // Refresh the pipe list
+ await fetchInstalledPipes();
});
return () => {
@@ -473,10 +508,10 @@ export const PipeStore: React.FC = () => {
try {
if (!checkLogin(settings.user)) return;
- posthog.capture("update_all_pipes", {});
-
let t;
if (!delayToast) {
+ posthog.capture("update_all_pipes", {});
+
t = toast({
title: "checking for updates",
description: (
diff --git a/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx b/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
index dd241da33..605e10365 100644
--- a/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
+++ b/screenpipe-app-tauri/components/pipe-store/pipe-card.tsx
@@ -202,7 +202,8 @@ export const PipeCard: React.FC<PipeCardProps> = ({
</motion.a>
)}
<span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-white/5 font-mono text-xs">
- v{pipe.installed_config?.version}
+ {pipe.installed_config?.version && "v"}
+ {pipe.installed_config?.version}
</span>
{pipe.has_update && (
<span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-white/10 font-mono text-xs animate-pulse">
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 998102bc2..af8eef906 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -5289,7 +5289,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.32.6"
+version = "0.32.7"
dependencies = [
"anyhow",
"async-stream",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 6a4ffdbc3..523905ce1 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.32.7"
+version = "0.32.8"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/src/analytics.rs b/screenpipe-app-tauri/src-tauri/src/analytics.rs
index fc13ee47c..69421366e 100755
--- a/screenpipe-app-tauri/src-tauri/src/analytics.rs
+++ b/screenpipe-app-tauri/src-tauri/src/analytics.rs
@@ -85,7 +85,6 @@ impl AnalyticsManager {
"disk_media_audios_size": disk_usage.media.audios_size,
"disk_total_pipes_size": disk_usage.pipes.total_pipes_size,
});
- warn!("disk data to add: {:?}", disk_data);
payload_props.extend(disk_data.as_object().unwrap().clone());
}
} else {
diff --git a/screenpipe-app-tauri/src-tauri/src/store.rs b/screenpipe-app-tauri/src-tauri/src/store.rs
index fdccd6617..928600e82 100644
--- a/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -2,7 +2,7 @@ use super::get_base_dir;
use std::sync::Arc;
use tauri::AppHandle;
use tauri_plugin_store::StoreBuilder;
-use tracing::info;
+use tracing::debug;
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct ProfilesConfig {
@@ -48,7 +48,7 @@ pub fn get_store(
"default".to_string()
};
- info!("Using settings profile: {}", profile);
+ debug!("Using settings profile: {}", profile);
// Determine store file path based on profile
let store_path = if profile == "default" {