Skip to content

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

fix(hooks): correct hook config path when hooks are disabled

Steven Enamakel403f119d8d70
diff --git a/crates/openhuman-core/src/hooks/ops.rs b/crates/openhuman-core/src/hooks/ops.rs
index ac6ad45e8d..9e55e3969a 100644
--- a/crates/openhuman-core/src/hooks/ops.rs
+++ b/crates/openhuman-core/src/hooks/ops.rs
@@ -34,7 +34,7 @@ pub async fn init(ctx: &DispatchCtx, config: &crate::config::schema::Config) {
if !settings.enabled {
crate::agent::hooks::replace_embedder_tool_hook("configured_hooks", None);
super::host::engine()
- .install(tinyagents_hooks::command::tinyagents_hooks::command::HookConfig::default())
+ .install(tinyagents_hooks::command::HookConfig::default())
.await;
log::info!("[hooks] disabled by configuration");
return;