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

Louis Beaumont4327fac37292
diff --git a/screenpipe-app-tauri/app/page.tsx b/screenpipe-app-tauri/app/page.tsx
index 9c446ab5e..6fa20b489 100644
--- a/screenpipe-app-tauri/app/page.tsx
+++ b/screenpipe-app-tauri/app/page.tsx
@@ -36,34 +36,10 @@ export default function Home() {
// staggered polling with exponential backoff while maintaining responsiveness
// while reducing backend load
useEffect(() => {
- let retries = 0;
- const maxRetries = 5;
- const minDelay = 1000; // 1s minimum
- const maxDelay = 30000; // 30s maximum
- let timeoutId: NodeJS.Timeout;
-
- const loadUserWithBackoff = async () => {
- if (!settings.user?.token) return;
-
- try {
- await loadUser(settings.user.token, false);
- retries = 0;
- } catch (err) {
- console.error("failed to load user:", err);
- retries = Math.min(retries + 1, maxRetries);
- }
-
- // calculate next delay with exponential backoff
- const delay = Math.min(minDelay * Math.pow(2, retries), maxDelay);
- timeoutId = setTimeout(loadUserWithBackoff, delay);
- };
-
- loadUserWithBackoff();
-
- // cleanup
- return () => {
- if (timeoutId) clearTimeout(timeoutId);
- };
+ const interval = setInterval(() => {
+ loadUser(settings.user?.token!);
+ }, 1000);
+ return () => clearInterval(interval);
}, [settings]);
useEffect(() => {
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index db84af6df..4050ac34e 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.34.8"
+version = "0.34.9"
description = ""
authors = ["you"]
license = ""