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

Optimize api calls followup (#1435)

neo773333c819a499f
diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsx
index b3a27996e..e1c244983 100644
--- a/screenpipe-app-tauri/components/pipe-store.tsx
+++ b/screenpipe-app-tauri/components/pipe-store.tsx
@@ -935,11 +935,11 @@ export const PipeStore: React.FC = () => {
// Run check immediately
checkForUpdates();
- // Set up interval to check every 5 minutes
- const interval = setInterval(checkForUpdates, 5 * 60 * 1000);
+ // Set up interval to check every 10 seconds actual check is done in the function
+ const interval = setInterval(checkForUpdates, 10 * 1000);
return () => clearInterval(interval);
- }, []);
+ }, [settings.user.token]);
useEffect(() => {
const setupDeepLink = async () => {
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index cbe6f41c2..3057f23a2 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.35.7"
+version = "0.35.10"
dependencies = [
"anyhow",
"async-stream",