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
refactor(agent): open scoped subagent sessions via context helper
Steven Enamakel2e339bfdf24a
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rsindex c48b59b196..189f6fcd04 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs@@ -130,13 +130,14 @@ async fn steer_reusable_session(let owner_scope: Arc<dyn Fn(u64) -> String + Send + Sync> = Arc::new(move |_| owner.clone());let jobs =(*crate::core::runtime::slot_for::<SubAgentJobRegistry>(&context.dispatch_ctx())).clone();- let store: Arc<dyn tinyagents_orchestration::subagent::SubagentSessionStore> = Arc::new(- crate::agent::orchestration::subagent_sessions::OpenHumanTinySubagentSessionStore::new(- product_parent.workspace_dir.clone(),- product_parent.session_id.clone(),- thread_id.clone(),- ),- );+ let store = crate::agent::orchestration::subagent_sessions::open_for_context(+ &context.dispatch_ctx(),+ product_parent.workspace_dir.clone(),+ product_parent.session_id.clone(),+ thread_id.clone(),+ Some(jobs.clone()),+ )+ .map_err(|error| format!("open scoped subagent sessions: {error}"))?;let parent_session = product_parent.session_id.clone();let dispatch = SubAgentMessageTool::new(jobs).with_tool_name("steer_subagent")