Skip to content

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

chore: I can't write an accurate commit message from this input — the diff itself is empty. The fi

Steven Enamakel2b83cf18555a
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index 1c81d00bff..adced1a7b3 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -353,6 +353,7 @@ impl SpawnAsyncSubagentTool {
let (status_tx, status_rx) = running_subagents::status_channel();
let background_workspace_dir = parent.workspace_dir.clone();
+ let background_dispatch = dispatch.clone();
let background_definition = definition.clone();
let background_agent_id = definition.id.clone();
let background_task_id = task_id.clone();
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
index d708b3b525..c062a99894 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
@@ -73,6 +73,7 @@ impl SpawnSubagentTool {
>,
>,
) -> anyhow::Result<ToolResult> {
+ let dispatch = run_context.dispatch_ctx();
// ── Argument extraction with back-compat ───────────────────────
let agent_id = args
.get("agent_id")
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs
index e3c36854cc..1e997a6c36 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs
@@ -183,6 +183,7 @@ impl SpawnWorkerThreadTool {
"spawn_worker_thread requires a live harness run context.",
));
};
+ let dispatch = run_context.dispatch_ctx();
let started = std::time::Instant::now();
let agent_id = args
@@ -241,7 +242,7 @@ impl SpawnWorkerThreadTool {
);
let threads =
- conversations::list_threads(&run_context.dispatch_ctx(), parent.workspace_dir.clone())
+ conversations::list_threads(&dispatch, parent.workspace_dir.clone())
.map_err(|e| anyhow::anyhow!(e))?;
if let Some(current_thread) = threads.iter().find(|t| t.id == current_thread_id) {
let is_delegated_label = current_thread
@@ -293,7 +294,7 @@ impl SpawnWorkerThreadTool {
// Shared with `spawn_subagent` so both delegation paths persist an
// identical, reopenable sub-thread seeded with the prompt.
let worker_thread_id = super::worker_thread::create_worker_thread(
- &run_context.dispatch_ctx(),
+ &dispatch,
parent.workspace_dir.clone(),
&current_thread_id,
&agent_id,