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
fix: main and vision capture improvements
Louis Beaumont836428d09064
diff --git a/Cargo.lock b/Cargo.lockindex f0dc0b8cf..48fc2cfe9 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6628,7 +6628,7 @@ dependencies = [[[package]]name = "screenpipe-audio"-version = "0.3.46"+version = "0.3.49"dependencies = ["anyhow","bytemuck",@@ -6681,7 +6681,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.46"+version = "0.3.49"dependencies = ["accessibility","accessibility-sys",@@ -6732,7 +6732,7 @@ dependencies = [[[package]]name = "screenpipe-db"-version = "0.3.46"+version = "0.3.49"dependencies = ["anyhow","chrono",@@ -6756,7 +6756,7 @@ dependencies = [[[package]]name = "screenpipe-events"-version = "0.3.46"+version = "0.3.49"dependencies = ["anyhow","chrono",@@ -6774,7 +6774,7 @@ dependencies = [[[package]]name = "screenpipe-integrations"-version = "0.3.46"+version = "0.3.49"dependencies = ["anyhow","image",@@ -6789,7 +6789,7 @@ dependencies = [[[package]]name = "screenpipe-server"-version = "0.3.46"+version = "0.3.49"dependencies = ["anyhow","async-trait",@@ -6858,7 +6858,7 @@ dependencies = [[[package]]name = "screenpipe-vision"-version = "0.3.46"+version = "0.3.49"dependencies = ["accessibility-sys","anyhow",diff --git a/Cargo.toml b/Cargo.tomlindex f5a5ec896..c1adca97e 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.49"+version = "0.3.50"authors = ["louis030195 <[email protected]>"]description = ""repository = "https://github.com/screenpipe/screenpipe"diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 2c3ab0c69..e6b3cc0b1 100755--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -9007,7 +9007,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.255"+version = "2.0.256"dependencies = ["anyhow","async-stream",@@ -9089,7 +9089,7 @@ dependencies = [[[package]]name = "screenpipe-audio"-version = "0.3.48"+version = "0.3.50"dependencies = ["anyhow","bytemuck",@@ -9137,7 +9137,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.48"+version = "0.3.50"dependencies = ["accessibility","accessibility-sys",@@ -9188,7 +9188,7 @@ dependencies = [[[package]]name = "screenpipe-db"-version = "0.3.48"+version = "0.3.50"dependencies = ["anyhow","chrono",@@ -9212,7 +9212,7 @@ dependencies = [[[package]]name = "screenpipe-events"-version = "0.3.48"+version = "0.3.50"dependencies = ["anyhow","chrono",@@ -9228,7 +9228,7 @@ dependencies = [[[package]]name = "screenpipe-integrations"-version = "0.3.48"+version = "0.3.50"dependencies = ["anyhow","image 0.25.9",@@ -9243,7 +9243,7 @@ dependencies = [[[package]]name = "screenpipe-server"-version = "0.3.48"+version = "0.3.50"dependencies = ["anyhow","async-trait",@@ -9307,7 +9307,7 @@ dependencies = [[[package]]name = "screenpipe-vision"-version = "0.3.48"+version = "0.3.50"dependencies = ["accessibility-sys","anyhow",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 26f6b31dd..915a2f0e9 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.255"+version = "2.0.256"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex a9def7c43..e578dc76a 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -33,10 +33,12 @@ use specta_typescript::Typescript;use tauri_specta::{collect_commands, Builder};mod analytics;+#[allow(deprecated)]mod icons;use crate::analytics::start_analytics;use crate::store::SettingsStore;+#[allow(deprecated)]mod commands;mod disk_usage;mod permissions;@@ -45,10 +47,12 @@ mod recording;mod store;mod tray;mod updates;+#[allow(deprecated)]mod window_api;#[cfg(target_os = "windows")]mod windows_overlay;#[cfg(target_os = "macos")]+#[allow(deprecated)]mod space_monitor;mod sync;mod obsidian_sync;diff --git a/crates/screenpipe-vision/src/capture_screenshot_by_window.rs b/crates/screenpipe-vision/src/capture_screenshot_by_window.rsindex 09590cff8..ee9cd6f63 100644--- a/crates/screenpipe-vision/src/capture_screenshot_by_window.rs+++ b/crates/screenpipe-vision/src/capture_screenshot_by_window.rs@@ -232,21 +232,7 @@ impl WindowFilters {let app_name_lower = app_name.to_lowercase();let title_lower = title.to_lowercase();- // If include list is empty, we're done- if self.include_set.is_empty() {- return true;- }-- // Check include list- if self- .include_set- .iter()- .any(|include| app_name_lower.contains(include) || title_lower.contains(include))- {- return true;- }-- // Check ignore list first (usually smaller)+ // Check ignore list first — always reject ignored windowsif !self.ignore_set.is_empty()&& self.ignore_set@@ -256,7 +242,16 @@ impl WindowFilters {return false;}- false+ // If include list is set, only allow windows that match it+ if !self.include_set.is_empty() {+ return self+ .include_set+ .iter()+ .any(|include| app_name_lower.contains(include) || title_lower.contains(include));+ }++ // No include list and not ignored — allow+ true}/// Check if a URL should be filtered out for privacy@@ -861,26 +856,23 @@ mod tests {#[test]fn test_is_valid_with_ignore_list() {- // The current is_valid logic:- // 1. If include_set is empty, return true (ignore_set not checked!)- // 2. If window matches include_set, return true- // 3. If window matches ignore_set (and didn't match include), return false- // 4. Otherwise return false- //- // This means ignore_set only filters things that DON'T match include_set+ // Logic: ignore list is always checked first, then include listlet filters = WindowFilters::new(&["private".to_string()], &[], &[]);- // Empty include_set = everything valid+ // No include list: allow everything except ignoredassert!(filters.is_valid("Chrome", "Google"));- assert!(filters.is_valid("Chrome", "Private Window")); // ignore_set not checked!+ assert!(!filters.is_valid("Chrome", "Private Window")); // ignored!let filters_with_include =WindowFilters::new(&["private".to_string()], &["chrome".to_string()], &[]);- // Chrome matches include, so valid even if title has "private"+ // Chrome matches include, "Google" not ignored → validassert!(filters_with_include.is_valid("Chrome", "Google"));- assert!(filters_with_include.is_valid("Chrome", "Private Window")); // include wins+ // "Private" is in ignore list → rejected even though Chrome is in include list+ assert!(!filters_with_include.is_valid("Chrome", "Private Window"));// Firefox doesn't match include, and matches ignoreassert!(!filters_with_include.is_valid("Firefox", "Private Browsing"));+ // Firefox doesn't match include, and doesn't match ignore → still rejected (not in include list)+ assert!(!filters_with_include.is_valid("Firefox", "Regular Window"));}// ==================== Edge cases ====================