The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(subagent): stop treating spawn_worker_thread as a delegation tool
Steven Enamakelc334e71f035e
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rsindex bf16f0b61d..43f35a0fad 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs@@ -244,8 +244,7 @@ impl SpawnSubagentTool {// Persist this delegation as a reopenable worker sub-thread, seeded// with the prompt, so the parent↔subagent conversation survives- // navigation and restarts — the same machinery `spawn_worker_thread`- // uses. Best-effort: with no parent context or thread store the run+ // navigation and restarts. Best-effort: with no parent context or thread store the run// still proceeds live-only (`worker_thread_id: None`).let worker_thread_id = run_context.parent.as_ref().and_then(|p| {let parent_thread_id = parent_thread_id.as_ref()?;diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 41c68062c3..4a0929e528 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -529,7 +529,7 @@ async fn run_typed_mode(let before = allowed_indices.len();allowed_indices.retain(|&i| {let name = parent.all_tools[i].name();- !is_subagent_spawn_tool(name) && name != "spawn_worker_thread"+ !is_subagent_spawn_tool(name)});let stripped = before - allowed_indices.len();if stripped > 0 {diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rsindex 2cc5887d0c..4b0bcb2035 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs@@ -80,10 +80,10 @@ pub(super) fn filter_tool_indices(let mut first_specs = std::collections::HashMap::new();let mut specs = Vec::new();let mut disallowed_recovery = std::collections::HashSet::new();- let mut delegation_tools = vec!["spawn_worker_thread".to_string()];+ let mut delegation_tools = Vec::new();for tool in parent_tools {let name = tool.name();- if is_subagent_spawn_tool(name) || name == "spawn_worker_thread" {+ if is_subagent_spawn_tool(name) {delegation_tools.push(name.to_string());}if crate::tools::rules::glob_list_matches(disallowed, name) {diff --git a/crates/openhuman-core/src/threads/worker_thread.rs b/crates/openhuman-core/src/threads/worker_thread.rsindex 8771858bff..374ed9671e 100644--- a/crates/openhuman-core/src/threads/worker_thread.rs+++ b/crates/openhuman-core/src/threads/worker_thread.rs@@ -1,8 +1,7 @@//! Shared helper for materialising a sub-agent's work as a persistent//! conversation sub-thread.//!-//! Both `spawn_worker_thread` (explicit) and `spawn_subagent` (inline)-//! back their run with a `worker-<uuid>` thread linked to the parent so the+//! `spawn_subagent` backs its run with a `worker-<uuid>` thread linked to the parent so the//! delegation is reopenable from memory and rendered as a parent↔subagent//! chat. The thread is created with `parent_thread_id` set (which hides it//! from the main sidebar — it surfaces in the "Workers" tab and the