Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(voice): handle lock file removal by resetting watcher

Steven Enamakel2fda23a7ce63
diff --git a/crates/openhuman-core/src/voice/always_on/lock_watcher.rs b/crates/openhuman-core/src/voice/always_on/lock_watcher.rs
index fe94318aef..7b4fd9311f 100644
--- a/crates/openhuman-core/src/voice/always_on/lock_watcher.rs
+++ b/crates/openhuman-core/src/voice/always_on/lock_watcher.rs
@@ -1,7 +1,10 @@
//! Screen-lock privacy hook: pauses always-on capture while the screen is
//! locked so nothing spoken at the lock screen is ever transcribed.
-use super::{LOG_PREFIX, PAUSED};
+use super::LOG_PREFIX;
+#[cfg(target_os = "macos")]
+use super::PAUSED;
+#[cfg(target_os = "macos")]
use std::sync::atomic::Ordering;
/// Poll the screen-lock state and drive [`PAUSED`] so always-on never captures