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: include titleless visible windows in PID pre-filter
louis030195b7b243b71e00
diff --git a/crates/screenpipe-engine/src/meeting_detector.rs b/crates/screenpipe-engine/src/meeting_detector.rsindex 7cf6cef05..1c29ced2b 100644--- a/crates/screenpipe-engine/src/meeting_detector.rs+++ b/crates/screenpipe-engine/src/meeting_detector.rs@@ -1041,15 +1041,17 @@ fn enumerate_visible_windows() -> Vec<(u32, String)> {let results = &*(lparam.0 as *const Mutex<Vec<(u32, String)>>);if IsWindowVisible(hwnd).as_bool() {+ let mut pid: u32 = 0;+ GetWindowThreadProcessId(hwnd, Some(&mut pid));let mut text = [0u16; 512];let len = GetWindowTextW(hwnd, &mut text);- if len > 0 {- let title = String::from_utf16_lossy(&text[..len as usize]);- let mut pid: u32 = 0;- GetWindowThreadProcessId(hwnd, Some(&mut pid));- if let Ok(mut r) = results.lock() {- r.push((pid, title));- }+ let title = if len > 0 {+ String::from_utf16_lossy(&text[..len as usize])+ } else {+ String::new()+ };+ if let Ok(mut r) = results.lock() {+ r.push((pid, title));}}BOOL(1)