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

fix: don't discard app_name when accessibility text is empty

Louis Beaumont4fb4e5475b85
diff --git a/crates/screenpipe-accessibility/src/tree/macos.rs b/crates/screenpipe-accessibility/src/tree/macos.rs
index d9636f41e..2f9c70e8b 100644
--- a/crates/screenpipe-accessibility/src/tree/macos.rs
+++ b/crates/screenpipe-accessibility/src/tree/macos.rs
@@ -252,9 +252,9 @@ impl TreeWalkerPlatform for MacosTreeWalker {
walk_element(window, 0, &mut state);
let text_content = state.text_buffer;
- if text_content.is_empty() {
- return Ok(None);
- }
+ // Don't bail on empty text — we still need the app_name and window_name
+ // for frame metadata. Chrome/Electron apps often return empty accessibility
+ // text but the app/window detection above already succeeded.
// Truncate if needed
let text_content = if text_content.len() > self.config.max_text_length {