Skip to content

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

fix(subagent_host): pass definition by reference to for_subagent

Steven Enamakelb9c36d83d83a
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index a48c3002af..9cd9f9da4f 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -984,7 +984,7 @@ async fn run_typed_mode(
options.thread_id.clone(),
options
.run_context
- .for_subagent(&definition, config.as_ref().ok().map(AsRef::as_ref)),
+ .for_subagent(definition, config.as_ref().ok().map(AsRef::as_ref)),
options.worker_thread_id.clone(),
parent.workspace_dir.clone(),
workspace_descriptor.clone(),