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: treat "default" monitor ID as "all monitors" to prevent stuck timeline

Louis Beaumont033c8b0421cf
diff --git a/crates/screenpipe-server/src/vision_manager/manager.rs b/crates/screenpipe-server/src/vision_manager/manager.rs
index 7c280a8c5..ad94aeaa1 100644
--- a/crates/screenpipe-server/src/vision_manager/manager.rs
+++ b/crates/screenpipe-server/src/vision_manager/manager.rs
@@ -108,7 +108,11 @@ impl VisionManager {
/// Uses prefix matching (name + resolution) so that position changes after
/// reconnect don't break the filter.
pub fn is_monitor_allowed(&self, monitor: &screenpipe_vision::monitor::SafeMonitor) -> bool {
- if self.config.use_all_monitors || self.config.monitor_ids.is_empty() {
+ let ids: Vec<&str> = self.config.monitor_ids.iter()
+ .map(|s| s.as_str())
+ .filter(|s| *s != "default")
+ .collect();
+ if self.config.use_all_monitors || ids.is_empty() {
return true;
}
let stable_id = monitor.stable_id();
@@ -116,9 +120,7 @@ impl VisionManager {
sid.rsplitn(2, '_').last().unwrap_or(sid)
}
let monitor_prefix = prefix(&stable_id);
- self.config
- .monitor_ids
- .iter()
+ ids.iter()
.any(|allowed| *allowed == stable_id || prefix(allowed) == monitor_prefix)
}