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

Revert "fix: treat "default" monitor ID as "all monitors" to prevent stuck timeline"

Louis Beaumont04a66a5ce899
diff --git a/crates/screenpipe-server/src/vision_manager/manager.rs b/crates/screenpipe-server/src/vision_manager/manager.rs
index ad94aeaa1..7c280a8c5 100644
--- a/crates/screenpipe-server/src/vision_manager/manager.rs
+++ b/crates/screenpipe-server/src/vision_manager/manager.rs
@@ -108,11 +108,7 @@ 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 {
- 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() {
+ if self.config.use_all_monitors || self.config.monitor_ids.is_empty() {
return true;
}
let stable_id = monitor.stable_id();
@@ -120,7 +116,9 @@ impl VisionManager {
sid.rsplitn(2, '_').last().unwrap_or(sid)
}
let monitor_prefix = prefix(&stable_id);
- ids.iter()
+ self.config
+ .monitor_ids
+ .iter()
.any(|allowed| *allowed == stable_id || prefix(allowed) == monitor_prefix)
}