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: report healthy frame status when screen is locked

Louis Beaumontc194ef3e57ac
diff --git a/crates/screenpipe-server/src/routes/health.rs b/crates/screenpipe-server/src/routes/health.rs
index ecebb7efe..33cbfe63c 100644
--- a/crates/screenpipe-server/src/routes/health.rs
+++ b/crates/screenpipe-server/src/routes/health.rs
@@ -179,6 +179,8 @@ pub async fn health_check(State(state): State<Arc<AppState>>) -> JsonResponse<He
let frame_status = if state.vision_disabled {
"disabled"
+ } else if crate::sleep_monitor::screen_is_locked() {
+ "ok" // screen locked — no captures expected, not a real stall
} else if last_frame_ts == 0 {
"not_started"
} else if now.timestamp() as u64 - last_frame_ts < threshold_secs {