Skip to content

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

refactor(orchestration): remove stopped-thread guard from async subagent spawn

Steven Enamakel0edd6a9f5ded
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 a94e8ba908..33dbd58424 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
@@ -255,18 +255,6 @@ impl SpawnAsyncSubagentTool {
}
let task_id = format!("sub-{}", uuid::Uuid::new_v4());
- if let Some(thread_id) = parent_thread_id.as_deref() {
- if crate::agent::orchestration::background_completions::mark_stopped_task_if_thread_stopped(
- &dispatch,
- &parent.workspace_dir,
- thread_id,
- &task_id,
- ) {
- return Ok(ToolResult::error(
- "spawn_async_subagent: parent thread is stopped or deleted",
- ));
- }
- }
let worker_thread_id = reusable
.as_ref()
.and_then(|session| session.worker_thread_id.clone())