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.478, CLI to v0.3.147

Louis Beaumont05c445f686ab
diff --git a/Cargo.toml b/Cargo.toml
index 9a6ffd60b..5462c6238 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ exclude = ["apps/screenpipe-app-tauri/src-tauri"]
resolver = "2"
[workspace.package]
-version = "0.3.146"
+version = "0.3.147"
authors = ["louis030195 <[email protected]>"]
description = ""
repository = "https://github.com/screenpipe/screenpipe"
diff --git a/apps/screenpipe-app-tauri/components/settings/account-section.tsx b/apps/screenpipe-app-tauri/components/settings/account-section.tsx
index 4c72bec15..936e56295 100644
--- a/apps/screenpipe-app-tauri/components/settings/account-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/account-section.tsx
@@ -16,6 +16,7 @@ import { Card } from "../ui/card";
import { onOpenUrl } from "@tauri-apps/plugin-deep-link";
import { PricingToggle } from "./pricing-toggle";
import { UpgradeDialog } from "@/components/upgrade-dialog";
+import { ReferralCard } from "./referral-card";
import posthog from "posthog-js";
@@ -422,6 +423,8 @@ export function AccountSection() {
</>
)}
+ <ReferralCard />
+
<UpgradeDialog
open={showUpgrade}
onOpenChange={setShowUpgrade}
diff --git a/apps/screenpipe-app-tauri/components/settings/referral-card.tsx b/apps/screenpipe-app-tauri/components/settings/referral-card.tsx
index cf04e98bd..a0a286619 100644
--- a/apps/screenpipe-app-tauri/components/settings/referral-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/referral-card.tsx
@@ -11,6 +11,7 @@ import { Badge } from "@/components/ui/badge";
import { Copy, Check, Gift, Send } from "lucide-react";
import { toast } from "@/components/ui/use-toast";
import { useSettings } from "@/lib/hooks/use-settings";
+import { open as openUrl } from "@tauri-apps/plugin-shell";
interface ReferralData {
code: string;
@@ -78,7 +79,7 @@ export function ReferralCard() {
const body = encodeURIComponent(
`hey, I've been using screenpipe and thought you'd like it.\n\nsign up with my link and get 10% off:\n${referral.link}\n\nit records your screen & audio locally and lets AI work with everything you've seen or heard.`
);
- window.open(`mailto:${email}?subject=${subject}&body=${body}`);
+ openUrl(`mailto:${email}?subject=${subject}&body=${body}`);
setEmail("");
toast({ title: "opening email client..." });
};
diff --git a/apps/screenpipe-app-tauri/public/CHANGELOG.md b/apps/screenpipe-app-tauri/public/CHANGELOG.md
index b2251a7f5..74256dd7f 100644
--- a/apps/screenpipe-app-tauri/public/CHANGELOG.md
+++ b/apps/screenpipe-app-tauri/public/CHANGELOG.md
@@ -1,8 +1,20 @@
## New Features
-- Voice training for speaker identification: record your voice so screenpipe can better identify you in audio transcriptions
-- Audio device modal improvements
+- **Element capture (beta)**: New low-CPU text extraction that reads directly from UI elements via accessibility APIs — uses ~2-5% CPU vs ~15-30% for OCR. Works on macOS and Windows.
+- **Disable OCR setting**: Capture screen but skip OCR text extraction to significantly reduce CPU usage.
+- **Stable monitor IDs**: Monitor identifiers now survive OS reboots — no more reconfiguring after restart.
+- **Redesigned screen settings**: OCR and element capture now live together in a unified "Text extraction" card with clear descriptions.
+
+## Improvements
+- Window filters (ignored/included windows) now apply to both OCR and element capture — previously only OCR respected these settings.
+- Timeline hover tooltip now shows UI events (keyboard, clipboard, clicks) for richer context.
+- Dynamic quick tags from user history with better overflow handling.
+- Size-based log rotation to prevent unbounded log growth.
+- Better onboarding: fixed permission modals appearing behind System Settings.
## Bug Fixes
-- Fixed login on onboarding page: sign-in now opens in an in-app browser instead of Safari, fixing the issue where Safari blocked the redirect back to the app
+- Fixed hooks crash and improved chat context UX.
+- Fixed screen recording permission modal hidden by System Settings.
+- Fixed onboarding skipping permissions on macOS due to race condition.
+- Fixed x86_64 ffmpeg download URL (evermeet.cx 404).
-#### **Full Changelog:** [6a0f06ab..HEAD](https://github.com/mediar-ai/screenpipe/compare/6a0f06ab..HEAD)
+#### **Full Changelog:** [bb949e35..d48e320e](https://github.com/mediar-ai/screenpipe/compare/bb949e35..d48e320e)
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index f9e6533b2..fb878b884 100755
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -8098,7 +8098,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.0.477"
+version = "2.0.478"
dependencies = [
"anyhow",
"arboard",
@@ -8192,7 +8192,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.146"
+version = "0.3.147"
dependencies = [
"anyhow",
"bytemuck",
@@ -8243,7 +8243,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.146"
+version = "0.3.147"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -8284,7 +8284,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.146"
+version = "0.3.147"
dependencies = [
"anyhow",
"chrono",
@@ -8309,7 +8309,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.146"
+version = "0.3.147"
dependencies = [
"anyhow",
"chrono",
@@ -8325,7 +8325,7 @@ dependencies = [
[[package]]
name = "screenpipe-integrations"
-version = "0.3.146"
+version = "0.3.147"
dependencies = [
"anyhow",
"chrono",
@@ -8346,7 +8346,7 @@ dependencies = [
[[package]]
name = "screenpipe-server"
-version = "0.3.146"
+version = "0.3.147"
dependencies = [
"anyhow",
"async-trait",
@@ -8402,7 +8402,7 @@ dependencies = [
[[package]]
name = "screenpipe-vision"
-version = "0.3.146"
+version = "0.3.147"
dependencies = [
"accessibility-sys",
"anyhow",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 1abc04654..62d2cf4b8 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.0.477"
+version = "2.0.478"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/content/changelogs/v2.0.478.md b/content/changelogs/v2.0.478.md
new file mode 100644
index 000000000..74256dd7f
--- /dev/null
+++ b/content/changelogs/v2.0.478.md
@@ -0,0 +1,20 @@
+## New Features
+- **Element capture (beta)**: New low-CPU text extraction that reads directly from UI elements via accessibility APIs — uses ~2-5% CPU vs ~15-30% for OCR. Works on macOS and Windows.
+- **Disable OCR setting**: Capture screen but skip OCR text extraction to significantly reduce CPU usage.
+- **Stable monitor IDs**: Monitor identifiers now survive OS reboots — no more reconfiguring after restart.
+- **Redesigned screen settings**: OCR and element capture now live together in a unified "Text extraction" card with clear descriptions.
+
+## Improvements
+- Window filters (ignored/included windows) now apply to both OCR and element capture — previously only OCR respected these settings.
+- Timeline hover tooltip now shows UI events (keyboard, clipboard, clicks) for richer context.
+- Dynamic quick tags from user history with better overflow handling.
+- Size-based log rotation to prevent unbounded log growth.
+- Better onboarding: fixed permission modals appearing behind System Settings.
+
+## Bug Fixes
+- Fixed hooks crash and improved chat context UX.
+- Fixed screen recording permission modal hidden by System Settings.
+- Fixed onboarding skipping permissions on macOS due to race condition.
+- Fixed x86_64 ffmpeg download URL (evermeet.cx 404).
+
+#### **Full Changelog:** [bb949e35..d48e320e](https://github.com/mediar-ai/screenpipe/compare/bb949e35..d48e320e)
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rs
index 76db6d14c..d524a69cc 100644
--- a/crates/screenpipe-core/src/agents/pi.rs
+++ b/crates/screenpipe-core/src/agents/pi.rs
@@ -13,7 +13,7 @@ use serde_json::json;
use std::path::{Path, PathBuf};
use tracing::{debug, error, info, warn};
-const PI_PACKAGE: &str = "@mariozechner/[email protected]";
+const PI_PACKAGE: &str = "@mariozechner/[email protected]";
pub const SCREENPIPE_API_URL: &str = "https://api.screenpi.pe/v1";
/// Returns the screenpipe cloud models array as a serde_json::Value.
@@ -194,7 +194,10 @@ impl PiExecutor {
}
}
- std::fs::write(&models_path, serde_json::to_string_pretty(&models_config)?)?;
+ // Atomic write: write to temp file then rename to prevent partial reads
+ let models_tmp = config_dir.join("models.json.tmp");
+ std::fs::write(&models_tmp, serde_json::to_string_pretty(&models_config)?)?;
+ std::fs::rename(&models_tmp, &models_path)?;
// -- auth.json: merge screenpipe token, preserve other providers --
if let Some(token) = user_token {
@@ -210,7 +213,9 @@ impl PiExecutor {
obj.insert("screenpipe".to_string(), json!(token));
}
- std::fs::write(&auth_path, serde_json::to_string_pretty(&auth)?)?;
+ let auth_tmp = config_dir.join("auth.json.tmp");
+ std::fs::write(&auth_tmp, serde_json::to_string_pretty(&auth)?)?;
+ std::fs::rename(&auth_tmp, &auth_path)?;
// Set restrictive permissions (user read/write only)
#[cfg(unix)]
@@ -224,45 +229,21 @@ impl PiExecutor {
debug!("pi config merged at {:?}", models_path);
Ok(())
}
-}
-#[async_trait::async_trait]
-impl AgentExecutor for PiExecutor {
- async fn run(
+ /// Spawn the pi subprocess and wait for its output.
+ async fn spawn_pi(
&self,
+ pi_path: &str,
prompt: &str,
model: &str,
working_dir: &Path,
- provider: Option<&str>,
+ resolved_provider: &str,
pid_tx: Option<tokio::sync::oneshot::Sender<u32>>,
) -> Result<AgentOutput> {
- Self::ensure_pi_config(
- self.user_token.as_deref(),
- &self.api_url,
- provider,
- Some(model),
- None, // URL resolved from provider name defaults
- )?;
- Self::ensure_screenpipe_skill(working_dir)?;
- Self::ensure_web_search_extension(working_dir)?;
-
- let pi_path = find_pi_executable()
- .ok_or_else(|| anyhow!("pi not found. install with: bun add -g {}", PI_PACKAGE))?;
-
- // Provider resolution:
- // 1. Explicit provider from pipe frontmatter → use it
- // 2. No provider specified → screenpipe cloud (default)
- let resolved_provider = provider.unwrap_or("screenpipe").to_string();
-
- info!(
- "pipe using provider: {}, model: {}",
- resolved_provider, model
- );
-
- let mut cmd = build_async_command(&pi_path);
+ let mut cmd = build_async_command(pi_path);
cmd.current_dir(working_dir);
cmd.arg("-p").arg(prompt);
- cmd.arg("--provider").arg(&resolved_provider);
+ cmd.arg("--provider").arg(resolved_provider);
cmd.arg("--model").arg(model);
if let Some(ref token) = self.user_token {
@@ -276,7 +257,6 @@ impl AgentExecutor for PiExecutor {
#[cfg(unix)]
unsafe {
cmd.pre_exec(|| {
- // Create a new process group (setsid)
libc::setsid();
Ok(())
});
@@ -292,7 +272,6 @@ impl AgentExecutor for PiExecutor {
let child = cmd.spawn()?;
let pid = child.id();
- // Report PID immediately so the caller can track/kill the process
if let Some(tx) = pid_tx {
if let Some(p) = pid {
let _ = tx.send(p);
@@ -310,6 +289,69 @@ impl AgentExecutor for PiExecutor {
pid,
})
}
+}
+
+#[async_trait::async_trait]
+impl AgentExecutor for PiExecutor {
+ async fn run(
+ &self,
+ prompt: &str,
+ model: &str,
+ working_dir: &Path,
+ provider: Option<&str>,
+ pid_tx: Option<tokio::sync::oneshot::Sender<u32>>,
+ ) -> Result<AgentOutput> {
+ Self::ensure_pi_config(
+ self.user_token.as_deref(),
+ &self.api_url,
+ provider,
+ Some(model),
+ None, // URL resolved from provider name defaults
+ )?;
+ Self::ensure_screenpipe_skill(working_dir)?;
+ Self::ensure_web_search_extension(working_dir)?;
+
+ let pi_path = find_pi_executable()
+ .ok_or_else(|| anyhow!("pi not found. install with: bun add -g {}", PI_PACKAGE))?;
+
+ // Provider resolution:
+ // 1. Explicit provider from pipe frontmatter → use it
+ // 2. No provider specified → screenpipe cloud (default)
+ let resolved_provider = provider.unwrap_or("screenpipe").to_string();
+
+ info!(
+ "pipe using provider: {}, model: {}",
+ resolved_provider, model
+ );
+
+ let output = self
+ .spawn_pi(&pi_path, prompt, model, working_dir, &resolved_provider, pid_tx)
+ .await?;
+
+ // Retry once on "model not found": delete stale models.json and rewrite
+ if !output.success && output.stderr.to_lowercase().contains("not found") {
+ warn!(
+ "pi model not found, retrying with fresh models.json (stderr: {})",
+ output.stderr.trim()
+ );
+ let config_dir = get_pi_config_dir()?;
+ let models_path = config_dir.join("models.json");
+ // Remove possibly-stale file so ensure_pi_config writes from scratch
+ let _ = std::fs::remove_file(&models_path);
+ Self::ensure_pi_config(
+ self.user_token.as_deref(),
+ &self.api_url,
+ provider,
+ Some(model),
+ None,
+ )?;
+ return self
+ .spawn_pi(&pi_path, prompt, model, working_dir, &resolved_provider, None)
+ .await;
+ }
+
+ Ok(output)
+ }
fn kill(&self, handle: &ExecutionHandle) -> Result<()> {
kill_process_group(handle.pid)