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 enumerate monitors via SCK when vision is disabled

Louis Beaumont151ef70d40d3
diff --git a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
index 7ef4e5ebd..65645aad8 100644
--- a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
+++ b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
@@ -588,7 +588,14 @@ async fn main() -> anyhow::Result<()> {
return Err(anyhow::anyhow!("port already in use"));
}
- let all_monitors = list_monitors().await;
+ // Only enumerate monitors when vision is enabled — on macOS, calling
+ // SCK's ShareableContent::current() triggers the "Currently Sharing"
+ // indicator in Control Center even if we never capture a frame (#2897).
+ let all_monitors = if config.disable_vision {
+ Vec::new()
+ } else {
+ list_monitors().await
+ };
let mut audio_devices = Vec::new();