Skip to content

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

fix(voice): handle missing composio integration gracefully

Steven Enamakelbf5ff6b484bd
diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs
index c94f4ee79e..029d1032eb 100644
--- a/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs
+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations/fetch.rs
@@ -146,7 +146,7 @@ pub async fn fetch_connected_integrations_status(
/// because the gate would reject them — advertising them would only invite
/// failed delegations. Slugs are trimmed + lowercased to match downstream
/// canonicalisation.
-fn connectable_toolkit_slugs(
+pub(super) fn connectable_toolkit_slugs(
toolkits: &[String],
catalog: &[crate::integrations::composio::types::ComposioToolkitCatalogEntry],
) -> Vec<String> {
@@ -178,7 +178,7 @@ fn connectable_toolkit_slugs(
/// empty description — i.e. older backends that predate the dynamic catalog,
/// or project toolkits whose Composio metadata join produced no blurb. Keyed
/// by lowercased slug to match the canonicalised allowlist.
-fn resolve_toolkit_description(
+pub(super) fn resolve_toolkit_description(
catalog_descriptions: &std::collections::HashMap<String, String>,
slug: &str,
) -> String {
diff --git a/crates/openhuman-core/src/voice/always_on.rs b/crates/openhuman-core/src/voice/always_on.rs
index 8003762e4b..c527301f62 100644
--- a/crates/openhuman-core/src/voice/always_on.rs
+++ b/crates/openhuman-core/src/voice/always_on.rs
@@ -24,9 +24,23 @@
//!
//! Privacy: always-on is **opt-in** (`config.voice_server.always_on_enabled`,
//! default false) and pauses when the screen is locked.
+//!
+//! ## Module layout
+//!
+//! - [`capture`] — the `cpal` stream and its realtime callback.
+//! - [`lock_watcher`] — the macOS screen-lock privacy hook.
+//! - [`processor`] — the async pipeline: VAD session, segmentation, gating.
+//! - [`transcribe`] — STT, wake-word gating, and local fast-path commands.
+
+mod capture;
+mod lock_watcher;
+mod processor;
+mod transcribe;
+
+pub use processor::{start_if_enabled, stop};
#[cfg(test)]
#[path = "always_on_tests.rs"]
mod tests;
-include!("always_on_part_01.rs");
-include!("always_on_part_02.rs");
+
+const LOG_PREFIX: &str = "[voice::always_on]";