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

Bump app to v2.0.174

Louis Beaumontc177b14f5553
diff --git a/Cargo.lock b/Cargo.lock
index eb0fe93a9..6ad32d7e9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6585,7 +6585,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "screenpipe-audio"
-version = "0.3.5"
+version = "0.3.6"
dependencies = [
"anyhow",
"bytemuck",
@@ -6638,7 +6638,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.5"
+version = "0.3.6"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -6689,7 +6689,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.5"
+version = "0.3.6"
dependencies = [
"anyhow",
"chrono",
@@ -6713,7 +6713,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.5"
+version = "0.3.6"
dependencies = [
"anyhow",
"chrono",
@@ -6731,7 +6731,7 @@ dependencies = [
[[package]]
name = "screenpipe-integrations"
-version = "0.3.5"
+version = "0.3.6"
dependencies = [
"anyhow",
"image",
@@ -6746,7 +6746,7 @@ dependencies = [
[[package]]
name = "screenpipe-server"
-version = "0.3.5"
+version = "0.3.6"
dependencies = [
"anyhow",
"async-trait",
@@ -6811,7 +6811,7 @@ dependencies = [
[[package]]
name = "screenpipe-vision"
-version = "0.3.5"
+version = "0.3.6"
dependencies = [
"accessibility-sys",
"anyhow",
diff --git a/screenpipe-app-tauri/components/settings/sync-settings.tsx b/screenpipe-app-tauri/components/settings/sync-settings.tsx
index b463f663e..47a7b51f8 100644
--- a/screenpipe-app-tauri/components/settings/sync-settings.tsx
+++ b/screenpipe-app-tauri/components/settings/sync-settings.tsx
@@ -223,7 +223,7 @@ function SyncOnboarding({ onSubscribe, isLoading }: { onSubscribe: () => void; i
}
// Password setup step
-function PasswordSetup({ onSubmit, isLoading }: { onSubmit: (password: string) => void; isLoading: boolean }) {
+function PasswordSetup({ onSubmit, isLoading, backendReady = true }: { onSubmit: (password: string) => void; isLoading: boolean; backendReady?: boolean }) {
const [password, setPassword] = useState("");
const [confirmPassword, setConfirmPassword] = useState("");
@@ -250,9 +250,7 @@ function PasswordSetup({ onSubmit, isLoading }: { onSubmit: (password: string) =
return (
<div className="space-y-6">
<div className="text-center">
- <div className="w-16 h-16 mx-auto rounded-full bg-primary/10 flex items-center justify-center">
- <Lock className="w-8 h-8 text-primary" />
- </div>
+ <CloudSyncAnimation />
<h3 className="text-xl font-semibold mt-4">set your encryption password</h3>
<p className="text-sm text-muted-foreground mt-2">
this password encrypts your data locally before syncing.
@@ -632,7 +630,7 @@ function ActiveSyncSettings({
}
export function SyncSettings() {
- const { settings } = useSettings();
+ const { settings, isSettingsLoaded } = useSettings();
const [step, setStep] = useState<"loading" | "onboarding" | "password" | "active">("loading");
const [subscription, setSubscription] = useState<SubscriptionStatus | null>(null);
const [status, setStatus] = useState<SyncStatus | null>(null);
@@ -640,21 +638,29 @@ export function SyncSettings() {
const [config, setConfig] = useState<SyncConfig | null>(null);
const [isLoading, setIsLoading] = useState(false);
const [isSyncing, setIsSyncing] = useState(false);
+ const [backendReady, setBackendReady] = useState(true);
useEffect(() => {
- checkSubscriptionAndLoad();
- }, []);
+ // Wait for settings to be fully loaded before checking subscription
+ if (isSettingsLoaded) {
+ checkSubscriptionAndLoad();
+ }
+ }, [isSettingsLoaded]);
const checkSubscriptionAndLoad = async () => {
try {
// Check subscription status via API
const token = settings.user?.token;
- if (!token) {
+ const userId = settings.user?.id;
+
+ // Must have both token and userId to check subscription
+ if (!token || !userId) {
+ console.log("no token or userId, showing onboarding");
setStep("onboarding");
return;
}
- const response = await fetch("https://screenpi.pe/api/cloud-sync/checkout?userId=" + settings.user?.id, {
+ const response = await fetch("https://screenpi.pe/api/cloud-sync/checkout?userId=" + userId, {
headers: {
"Authorization": `Bearer ${token}`,
},
@@ -662,6 +668,7 @@ export function SyncSettings() {
if (response.ok) {
const data = await response.json();
+ console.log("cloud sync subscription check:", data);
setSubscription({
hasSubscription: data.hasSubscription,
tier: data.subscription?.tier || null,
@@ -669,27 +676,35 @@ export function SyncSettings() {
});
if (data.hasSubscription) {
- // Load sync data
- const [statusResult, configResult, devicesResult] = await Promise.all([
- invoke<SyncStatus>("get_sync_status"),
- invoke<SyncConfig>("get_sync_config"),
- invoke<SyncDevice[]>("get_sync_devices"),
- ]);
- setStatus(statusResult);
- setConfig(configResult);
- setDevices(devicesResult);
-
- // If sync is already enabled, show active view
- // Otherwise show password setup
- if (statusResult.enabled) {
- setStep("active");
- } else {
+ // Try to load sync data from backend
+ try {
+ const [statusResult, configResult, devicesResult] = await Promise.all([
+ invoke<SyncStatus>("get_sync_status"),
+ invoke<SyncConfig>("get_sync_config"),
+ invoke<SyncDevice[]>("get_sync_devices"),
+ ]);
+ setStatus(statusResult);
+ setConfig(configResult);
+ setDevices(devicesResult);
+
+ // If sync is already enabled, show active view
+ // Otherwise show password setup
+ if (statusResult.enabled) {
+ setStep("active");
+ } else {
+ setStep("password");
+ }
+ } catch (backendError) {
+ // Backend sync commands not available yet - show password setup
+ console.error("sync backend not ready:", backendError);
+ setBackendReady(false);
setStep("password");
}
} else {
setStep("onboarding");
}
} else {
+ console.log("subscription API returned non-ok status:", response.status);
setStep("onboarding");
}
} catch (error) {
@@ -906,7 +921,7 @@ export function SyncSettings() {
}
if (step === "password") {
- return <PasswordSetup onSubmit={handlePasswordSubmit} isLoading={isLoading} />;
+ return <PasswordSetup onSubmit={handlePasswordSubmit} isLoading={isLoading} backendReady={backendReady} />;
}
if (step === "active" && status && config) {
diff --git a/screenpipe-app-tauri/public/animations/cloud-sync.json b/screenpipe-app-tauri/public/animations/cloud-sync.json
index 86b1e3cab..56e8c86f6 100644
--- a/screenpipe-app-tauri/public/animations/cloud-sync.json
+++ b/screenpipe-app-tauri/public/animations/cloud-sync.json
@@ -161,7 +161,7 @@
},
{
"ty": "fl",
- "c": { "a": 0, "k": [0.4, 0.6, 1, 1] },
+ "c": { "a": 0, "k": [0.7, 0.7, 0.7, 1] },
"o": { "a": 0, "k": 100 },
"r": 1,
"nm": "Cloud Fill"
@@ -363,7 +363,7 @@
},
{
"ty": "fl",
- "c": { "a": 0, "k": [0.4, 0.8, 0.4, 1] },
+ "c": { "a": 0, "k": [1, 1, 1, 1] },
"o": { "a": 0, "k": 100 },
"r": 1,
"nm": "Lock Fill"
@@ -434,7 +434,7 @@
},
{
"ty": "fl",
- "c": { "a": 0, "k": [0.3, 0.7, 0.4, 1] },
+ "c": { "a": 0, "k": [1, 1, 1, 1] },
"o": { "a": 0, "k": 100 },
"r": 1,
"nm": "Packet Fill"
@@ -505,7 +505,7 @@
},
{
"ty": "fl",
- "c": { "a": 0, "k": [0.3, 0.5, 0.8, 1] },
+ "c": { "a": 0, "k": [0.8, 0.8, 0.8, 1] },
"o": { "a": 0, "k": 100 },
"r": 1,
"nm": "Packet Fill"
@@ -576,7 +576,7 @@
},
{
"ty": "fl",
- "c": { "a": 0, "k": [0.3, 0.7, 0.4, 1] },
+ "c": { "a": 0, "k": [1, 1, 1, 1] },
"o": { "a": 0, "k": 100 },
"r": 1,
"nm": "Packet Fill"
@@ -647,7 +647,7 @@
},
{
"ty": "fl",
- "c": { "a": 0, "k": [0.3, 0.5, 0.8, 1] },
+ "c": { "a": 0, "k": [0.8, 0.8, 0.8, 1] },
"o": { "a": 0, "k": 100 },
"r": 1,
"nm": "Packet Fill"
@@ -708,7 +708,7 @@
},
{
"ty": "fl",
- "c": { "a": 0, "k": [0.2, 0.8, 0.4, 1] },
+ "c": { "a": 0, "k": [1, 1, 1, 1] },
"o": { "a": 0, "k": 100 },
"r": 1,
"nm": "Circle Fill"
@@ -767,7 +767,7 @@
},
{
"ty": "fl",
- "c": { "a": 0, "k": [0.2, 0.8, 0.4, 1] },
+ "c": { "a": 0, "k": [1, 1, 1, 1] },
"o": { "a": 0, "k": 100 },
"r": 1,
"nm": "Circle Fill"
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index c4f02354f..b0f9a96d7 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 = "2.0.173"
+version = "2.0.174"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""