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: detect Arc incognito via AXIdentifier instead of broken AppleScript
Louis Beaumont56e234fad8fd
diff --git a/crates/screenpipe-a11y/src/tree/macos.rs b/crates/screenpipe-a11y/src/tree/macos.rsindex 256f67179..05cc9e55c 100644--- a/crates/screenpipe-a11y/src/tree/macos.rs+++ b/crates/screenpipe-a11y/src/tree/macos.rs@@ -260,9 +260,21 @@ impl MacosTreeWalker {let window_name = get_string_attr(window, ax::attr::title()).unwrap_or_default();+ // Fast path: Arc (and potentially other browsers) tag incognito windows+ // with "Incognito" in AXIdentifier (e.g. "bigIncognitoBrowserWindow-...").+ // This is more reliable than AppleScript which Arc 1.138+ broke entirely.+ if self.config.ignore_incognito_windows {+ if let Some(ax_id) = get_string_attr(window, ax::attr::id()) {+ let ax_id_lower = ax_id.to_lowercase();+ if ax_id_lower.contains("incognito") || ax_id_lower.contains("private") {+ return Ok(TreeWalkResult::Skipped(SkipReason::Incognito));+ }+ }+ }+// Skip incognito / private browsing windows. Uses the full detector// which checks AppleScript window properties for Chromium browsers- // (Arc, Chrome, Edge, etc.) and falls back to localized title matching.+ // (Chrome, Edge, etc.) and falls back to localized title matching.if self.config.ignore_incognito_windows&& self.incognito_detector