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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
Bump app v2.0.516 — disable scroll/window_focus capture, fix emoji crash, fix tray health
Louis Beaumont165abff74f19
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 1f29a4ce0..0e606df3d 100755--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -8097,7 +8097,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.515"+version = "2.0.516"dependencies = ["anyhow","arboard",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 0933bbc7c..0e6bff8ca 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.515"+version = "2.0.516"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/apps/screenpipe-app-tauri/src-tauri/src/health.rs b/apps/screenpipe-app-tauri/src-tauri/src/health.rsindex dc2662d3c..9a2ca228f 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/health.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/health.rs@@ -332,7 +332,14 @@ async fn check_health(client: &reqwest::Client) -> Result<HealthCheckResponse> {.await.map_err(|e| anyhow::anyhow!("failed to parse sidecar response: {}", e)),Ok(response) => {- anyhow::bail!("health check failed with status: {}", response.status())+ // Server returned non-2xx (e.g. 503 for "degraded") — still try to+ // parse the JSON body so we can distinguish "degraded but running"+ // from "server is down". Without this, a high frame-drop rate causes+ // the tray to show "stopped" even though the server IS recording.+ match response.json::<HealthCheckResponse>().await {+ Ok(health) => Ok(health),+ Err(e) => anyhow::bail!("health check non-2xx with unparseable body: {}", e),+ }}Err(e) if e.is_timeout() => {anyhow::bail!("health check timeout, sidecar may not be running")diff --git a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rsindex 37b7d48c9..30f139454 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs@@ -677,7 +677,8 @@ async fn build_activity_context(let mut used = 0;for s in &snippets {let text = s.snippet.trim().replace('\n', " ");- let line = format!(" [{}] {}", s.app_name, &text[..text.len().min(150)]);+ let end = text.floor_char_boundary(text.len().min(150));+ let line = format!(" [{}] {}", s.app_name, &text[..end]);if used + line.len() > char_budget { break; }used += line.len() + 1;parts.push(line);@@ -765,7 +766,7 @@ async fn generate_ai_suggestions(let content = data["choices"][0]["message"]["content"].as_str().unwrap_or("");- debug!("suggestions AI response: {}", &content[..content.len().min(300)]);+ debug!("suggestions AI response: {}", &content[..content.floor_char_boundary(content.len().min(300))]);parse_ai_response(content)}Ok(r) => {@@ -1164,7 +1165,7 @@ mod tests {if !ocr.is_empty() {println!("\n ocr samples:");for s in ocr.iter().take(3) {- println!(" \"{}\"", &s[..s.len().min(80)]);+ println!(" \"{}\"", &s[..s.floor_char_boundary(s.len().min(80))]);}}diff --git a/crates/screenpipe-accessibility/src/config.rs b/crates/screenpipe-accessibility/src/config.rsindex 38332bd86..024ba722a 100644--- a/crates/screenpipe-accessibility/src/config.rs+++ b/crates/screenpipe-accessibility/src/config.rs@@ -29,9 +29,12 @@ pub struct UiCaptureConfig {/// Capture app switchespub capture_app_switch: bool,- /// Capture window focus changes+ /// Capture window focus changes (high volume - disabled by default)pub capture_window_focus: bool,+ /// Capture scroll events (very high volume - disabled by default)+ pub capture_scroll: bool,+/// Capture clipboard operationspub capture_clipboard: bool,@@ -111,7 +114,8 @@ impl Default for UiCaptureConfig {capture_text: true,capture_keystrokes: false, // Privacy riskcapture_app_switch: true,- capture_window_focus: true,+ capture_window_focus: false, // High volume+ capture_scroll: false, // Very high volumecapture_clipboard: true,capture_clipboard_content: true,capture_context: true,diff --git a/crates/screenpipe-accessibility/src/platform/macos.rs b/crates/screenpipe-accessibility/src/platform/macos.rsindex a607d2da2..d39aaf822 100644--- a/crates/screenpipe-accessibility/src/platform/macos.rs+++ b/crates/screenpipe-accessibility/src/platform/macos.rs@@ -484,31 +484,35 @@ extern "C" fn tap_callback(}cg::EventType::SCROLL_WHEEL => {- // Record activity+ // Record activity for adaptive FPS even when scroll capture is offif let Some(ref feed) = state.activity_feed {feed.record(ActivityKind::Scroll);}- let dy = event.field_i64(cg::EventField::SCROLL_WHEEL_EVENT_DELTA_AXIS1) as i16;- let dx = event.field_i64(cg::EventField::SCROLL_WHEEL_EVENT_DELTA_AXIS2) as i16;- if dx != 0 || dy != 0 {- let ui_event = UiEvent {- id: None,- timestamp,- relative_ms: t,- data: EventData::Scroll {- x: loc.x as i32,- y: loc.y as i32,- delta_x: dx,- delta_y: dy,- },- app_name,- window_title,- browser_url: None,- element: None,- frame_id: None,- };- let _ = state.tx.try_send(ui_event);+ if state.config.capture_scroll {+ let dy =+ event.field_i64(cg::EventField::SCROLL_WHEEL_EVENT_DELTA_AXIS1) as i16;+ let dx =+ event.field_i64(cg::EventField::SCROLL_WHEEL_EVENT_DELTA_AXIS2) as i16;+ if dx != 0 || dy != 0 {+ let ui_event = UiEvent {+ id: None,+ timestamp,+ relative_ms: t,+ data: EventData::Scroll {+ x: loc.x as i32,+ y: loc.y as i32,+ delta_x: dx,+ delta_y: dy,+ },+ app_name,+ window_title,+ browser_url: None,+ element: None,+ frame_id: None,+ };+ let _ = state.tx.try_send(ui_event);+ }}}diff --git a/crates/screenpipe-accessibility/src/platform/windows.rs b/crates/screenpipe-accessibility/src/platform/windows.rsindex c56950776..3444ac811 100644--- a/crates/screenpipe-accessibility/src/platform/windows.rs+++ b/crates/screenpipe-accessibility/src/platform/windows.rs@@ -710,31 +710,33 @@ unsafe extern "system" fn mouse_hook_proc(code: i32, wparam: WPARAM, lparam: LPA}WM_MOUSEWHEEL => {- // Record activity+ // Record activity for adaptive FPS even when scroll capture is offif let Some(ref feed) = s.activity_feed {feed.record(ActivityKind::Scroll);}- // High word of mouseData contains wheel delta- let delta = (mouse_struct.mouseData >> 16) as i16;+ if s.config.capture_scroll {+ // High word of mouseData contains wheel delta+ let delta = (mouse_struct.mouseData >> 16) as i16;- let event = UiEvent {- id: None,- timestamp,- relative_ms: t,- data: EventData::Scroll {- x,- y,- delta_x: 0,- delta_y: delta,- },- app_name,- window_title,- browser_url: None,- element: None,- frame_id: None,- };- let _ = s.tx.try_send(event);+ let event = UiEvent {+ id: None,+ timestamp,+ relative_ms: t,+ data: EventData::Scroll {+ x,+ y,+ delta_x: 0,+ delta_y: delta,+ },+ app_name,+ window_title,+ browser_url: None,+ element: None,+ frame_id: None,+ };+ let _ = s.tx.try_send(event);+ }}_ => {}diff --git a/crates/screenpipe-server/src/ui_recorder.rs b/crates/screenpipe-server/src/ui_recorder.rsindex 7655dad03..c48b30849 100644--- a/crates/screenpipe-server/src/ui_recorder.rs+++ b/crates/screenpipe-server/src/ui_recorder.rs@@ -51,6 +51,8 @@ pub struct UiRecorderConfig {pub capture_app_switch: bool,/// Capture window focus changespub capture_window_focus: bool,+ /// Capture scroll events+ pub capture_scroll: bool,/// Capture element context via accessibilitypub capture_context: bool,/// Additional apps to exclude@@ -85,7 +87,8 @@ impl Default for UiRecorderConfig {capture_clipboard: true,capture_clipboard_content: true,capture_app_switch: true,- capture_window_focus: true,+ capture_window_focus: false,+ capture_scroll: false,capture_context: true,excluded_apps: Vec::new(),excluded_windows: Vec::new(),@@ -114,6 +117,7 @@ impl UiRecorderConfig {config.capture_clipboard_content = self.capture_clipboard_content;config.capture_app_switch = self.capture_app_switch;config.capture_window_focus = self.capture_window_focus;+ config.capture_scroll = self.capture_scroll;config.capture_context = self.capture_context;// Add excluded apps