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_host): reject spawns when parent thread is stopped
Steven Enamakelda917ec03e7a
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rsindex bf65e5616b..275c1e2579 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs@@ -366,6 +366,21 @@ async fn invoke_async_spawn_driver_tool(})});}+ if let (Some(thread_id), Some(parent_context)) = (+ parent.thread_id().map(|id| id.as_str().to_owned()),+ parent.data.parent.as_ref(),+ ) {+ if crate::agent::orchestration::background_completions::mark_stopped_task_if_thread_stopped(+ &dispatch_ctx,+ &parent_context.workspace_dir,+ &thread_id,+ &task_id,+ ) {+ return Err(SubagentRunError::Provider(anyhow::anyhow!(+ "parent thread is stopped or deleted"+ )));+ }+ }let args = serde_json::json!({ "input": input, "mode": mode });let tool_result = dispatcher.execute(diff --git a/vendor/tinyagents b/vendor/tinyagentsindex cf2e2ad896..b4d35780a0 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit cf2e2ad89677838ba5e55a80d728a87f2d736e51+Subproject commit b4d35780a08c375017dfad7d95797522d846ffa3