Skip to content

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

fix(voice): restore the macOS build after the tinycomputer-accessibility API change

M3gA-Mind6540127b09c4
diff --git a/crates/openhuman-core/src/voice/server/hotkey_listener.rs b/crates/openhuman-core/src/voice/server/hotkey_listener.rs
index 3829622620..ebbdd7ee68 100644
--- a/crates/openhuman-core/src/voice/server/hotkey_listener.rs
+++ b/crates/openhuman-core/src/voice/server/hotkey_listener.rs
@@ -98,7 +98,7 @@ fn start_globe_hotkey_listener(
info!("{LOG_PREFIX} hotkey is Fn on macOS — using Swift globe listener instead of rdev");
- let status = globe_listener_start()?;
+ let status = globe_listener_start().map_err(|e| e.to_string())?;
if !status.running {
let err_msg = status
.last_error
diff --git a/crates/openhuman-core/src/voice/text_input.rs b/crates/openhuman-core/src/voice/text_input.rs
index b34e49b126..ce81369ca7 100644
--- a/crates/openhuman-core/src/voice/text_input.rs
+++ b/crates/openhuman-core/src/voice/text_input.rs
@@ -73,7 +73,9 @@ pub fn insert_text(text: &str, expected_app: Option<&str>) -> Result<(), String>
#[cfg(target_os = "macos")]
if let Some(app_name) = expected_app {
debug!("{LOG_PREFIX} validating focus before paste; expected_app='{app_name}'");
- if let Err(validation_err) = accessibility::validate_focused_target(Some(app_name), None) {
+ if let Err(validation_err) =
+ accessibility::validate_focused_target(Some(app_name), None, None)
+ {
warn!("{LOG_PREFIX} focus changed before paste: {validation_err}");
// Always try to restore focus — even if the user hasn't clicked a
// text field yet, activating the app brings it to front and most