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: reduce incognito false positives, bump app to v2.2.131
Louis Beaumont6b45f960933d
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex 3bc5ca900..c98c16277 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -9329,7 +9329,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.2.130"+version = "2.2.131"dependencies = ["anyhow","arboard",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 1607e9eca..d36f8f776 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.2.130"+version = "2.2.131"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/crates/screenpipe-a11y/src/config.rs b/crates/screenpipe-a11y/src/config.rsindex f3e1016a6..218f98d18 100644--- a/crates/screenpipe-a11y/src/config.rs+++ b/crates/screenpipe-a11y/src/config.rs@@ -142,14 +142,13 @@ impl Default for UiCaptureConfig {"Credential Manager".to_string(),],excluded_window_patterns: Vec::new(),- // Note: incognito / private browsing detection is now handled by- // the `crate::incognito` module with comprehensive localized- // matching and platform-native APIs (macOS AppleScript).- // Only generic sensitive-content patterns remain here.- excluded_window_pattern_strings: vec![- r"(?i).*password.*".to_string(),- r"(?i).*secret.*".to_string(),- ],+ // Incognito / private browsing detection is handled by the+ // `crate::incognito` module with comprehensive localized matching+ // and platform-native APIs (macOS AppleScript).+ // Bare "password"/"secret" patterns removed — too many false+ // positives on normal windows (e.g. password manager settings,+ // "Secret Santa Planning", AWS Secrets Manager, etc.).+ excluded_window_pattern_strings: vec![],// Retentionretention_days: 30,diff --git a/crates/screenpipe-a11y/src/incognito/mod.rs b/crates/screenpipe-a11y/src/incognito/mod.rsindex f1a0e2238..600cf4992 100644--- a/crates/screenpipe-a11y/src/incognito/mod.rs+++ b/crates/screenpipe-a11y/src/incognito/mod.rs@@ -116,15 +116,16 @@ mod tests {}#[test]- fn test_password_and_secret_windows() {- assert!(is_title_private("Enter Password - Chrome"));- assert!(is_title_private("Secret Notes"));+ fn test_no_false_positives_on_normal_windows() {+ assert!(!is_title_private("Enter Password - Chrome"));+ assert!(!is_title_private("Secret Notes"));+ assert!(!is_title_private("Private API docs - Chrome"));}#[test]fn test_case_insensitivity() {assert!(is_title_private("INCOGNITO - Chrome"));- assert!(is_title_private("PRIVATE BROWSING"));+ assert!(is_title_private("PRIVATE BROWSING - Firefox"));assert!(is_title_private("inprivate - Edge"));}diff --git a/crates/screenpipe-a11y/src/incognito/titles.rs b/crates/screenpipe-a11y/src/incognito/titles.rsindex 56d259d4b..76fdf8c3c 100644--- a/crates/screenpipe-a11y/src/incognito/titles.rs+++ b/crates/screenpipe-a11y/src/incognito/titles.rs@@ -320,7 +320,7 @@ mod tests {#[test]fn test_case_insensitivity_english() {assert!(is_title_private("INCOGNITO - Chrome"));- assert!(is_title_private("Private Browsing"));+ assert!(is_title_private("PRIVATE BROWSING - Firefox"));assert!(is_title_private("INPRIVATE - Edge"));}@@ -330,15 +330,17 @@ mod tests {fn test_partial_title_with_keyword() {assert!(is_title_private("Some Page (Incognito)"));assert!(is_title_private("(InPrivate) Bing"));+ assert!(is_title_private("Some Page (Private Browsing)"));}- // ---- False positive awareness ----- // These are acceptable false positives — "private" in a page title- // is rare and skipping is safer than recording.+ // ---- Former false positives now correctly handled ----#[test]- fn test_acceptable_false_positive_private_in_title() {- // A page titled "Private API docs" would be skipped — this is by design.- assert!(is_title_private("Private API docs - Chrome"));+ fn test_no_false_positive_private_in_title() {+ // Normal pages with "private" in title should NOT be flagged.+ assert!(!is_title_private("Private API docs - Chrome"));+ assert!(!is_title_private("Secret Santa Planning - Firefox"));+ assert!(!is_title_private("Enter Password - Chrome"));+ assert!(!is_title_private("My Private Repository - GitHub"));}}