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

fix(keychain): resolve compile error, fmt, and non-Mac onboarding gate

Louis Beaumontc2bfeec8139a
diff --git a/Cargo.lock b/Cargo.lock
index 744ab4f60..ae8c5fa31 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6870,7 +6870,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"anyhow",
"audiopipe",
@@ -6931,7 +6931,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -6944,7 +6944,7 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"anyhow",
"async-trait",
@@ -6974,7 +6974,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -7022,7 +7022,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"anyhow",
"chrono",
@@ -7048,7 +7048,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"anyhow",
"arc-swap",
@@ -7120,7 +7120,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"anyhow",
"chrono",
@@ -7138,7 +7138,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -7196,7 +7196,7 @@ dependencies = [
[[package]]
name = "screenpipe-vault"
-version = "0.3.291"
+version = "0.3.294"
dependencies = [
"argon2",
"chacha20poly1305",
diff --git a/apps/screenpipe-app-tauri/app/onboarding/page.tsx b/apps/screenpipe-app-tauri/app/onboarding/page.tsx
index 5ee1b3000..4c6d73e20 100644
--- a/apps/screenpipe-app-tauri/app/onboarding/page.tsx
+++ b/apps/screenpipe-app-tauri/app/onboarding/page.tsx
@@ -14,7 +14,6 @@ import ConnectApps from "@/components/onboarding/connect-apps";
import PickPipe from "@/components/onboarding/pick-pipe";
import { useOnboarding } from "@/lib/hooks/use-onboarding";
import { useIsEnterpriseBuild } from "@/lib/hooks/use-is-enterprise-build";
-import { usePlatform } from "@/lib/hooks/use-platform";
import posthog from "posthog-js";
import { commands } from "@/lib/utils/tauri";
@@ -46,7 +45,6 @@ export default function OnboardingPage() {
const [isTransitioning, setIsTransitioning] = useState(false);
const { onboardingData, isLoading } = useOnboarding();
const isEnterprise = useIsEnterpriseBuild();
- const { isMac } = usePlatform();
// Enterprise builds skip the login slide
useEffect(() => {
@@ -173,7 +171,7 @@ export default function OnboardingPage() {
{currentSlide === "permissions" && (
<PermissionsStep handleNextSlide={handleNextSlide} />
)}
- {currentSlide === "encrypt" && isMac && (
+ {currentSlide === "encrypt" && (
<EncryptionChoice handleNextSlide={handleNextSlide} />
)}
{currentSlide === "engine" && (
diff --git a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
index 2f5088690..06e6767de 100644
--- a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
+++ b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
@@ -949,6 +949,8 @@ async fn main() -> anyhow::Result<()> {
_ => None,
}
}
+ } else {
+ None
};
let secret_store_result =
screenpipe_secrets::SecretStore::new(db.pool.clone(), secret_key).await;
diff --git a/crates/screenpipe-engine/src/cli/sync.rs b/crates/screenpipe-engine/src/cli/sync.rs
index 21d9494c6..8895bf4a5 100644
--- a/crates/screenpipe-engine/src/cli/sync.rs
+++ b/crates/screenpipe-engine/src/cli/sync.rs
@@ -224,7 +224,10 @@ async fn handle_remote_sync_command(command: &RemoteSyncCommand) -> anyhow::Resu
match command {
RemoteSyncCommand::Test { cfg } => {
let config = build_sync_config(cfg);
- println!("testing ssh connection to {}@{}:{}…", config.user, config.host, config.port);
+ println!(
+ "testing ssh connection to {}@{}:{}…",
+ config.user, config.host, config.port
+ );
match remote_sync::test_connection(&config).await {
Ok(()) => println!(" ✓ ok"),
Err(e) => {
@@ -243,7 +246,11 @@ async fn handle_remote_sync_command(command: &RemoteSyncCommand) -> anyhow::Resu
"pushing {} to {}:{}{} …",
dir.display(),
config.host,
- if config.port == 22 { String::new() } else { format!(":{}", config.port) },
+ if config.port == 22 {
+ String::new()
+ } else {
+ format!(":{}", config.port)
+ },
config.remote_path,
);
let result = remote_sync::sync_to_remote(&config, &dir).await;
@@ -271,7 +278,11 @@ async fn handle_remote_sync_command(command: &RemoteSyncCommand) -> anyhow::Resu
} else {
println!("candidate ssh hosts:");
for h in hosts {
- let alias = h.alias.as_deref().map(|a| format!(" ({a})")).unwrap_or_default();
+ let alias = h
+ .alias
+ .as_deref()
+ .map(|a| format!(" ({a})"))
+ .unwrap_or_default();
let user = h.user.as_deref().unwrap_or("<unset>");
let key = h.key_path.as_deref().unwrap_or("<unset>");
println!(
diff --git a/crates/screenpipe-engine/src/permission_monitor.rs b/crates/screenpipe-engine/src/permission_monitor.rs
index d2abc700b..8407a6768 100644
--- a/crates/screenpipe-engine/src/permission_monitor.rs
+++ b/crates/screenpipe-engine/src/permission_monitor.rs
@@ -280,9 +280,7 @@ fn keychain_accessible() -> bool {
fn is_keychain_encryption_requested() -> bool {
// explicit opt-in via env override
- if std::env::var("SCREENPIPE_ENCRYPT_STORE")
- .map_or(false, |v| v == "1")
- {
+ if std::env::var("SCREENPIPE_ENCRYPT_STORE").map_or(false, |v| v == "1") {
return true;
}
diff --git a/crates/screenpipe-secrets/src/keychain.rs b/crates/screenpipe-secrets/src/keychain.rs
index a4a288c77..126331149 100644
--- a/crates/screenpipe-secrets/src/keychain.rs
+++ b/crates/screenpipe-secrets/src/keychain.rs
@@ -12,8 +12,8 @@
//! On Windows/Linux: uses the `keyring` crate.
use base64::{engine::general_purpose::STANDARD as B64, Engine};
-use std::sync::OnceLock;
use std::sync::Mutex;
+use std::sync::OnceLock;
use tracing::{debug, info, warn};
const SERVICE: &str = "com.screenpipe.app";