Skip to content

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

refactor(agent): shorten spawn subagent admission comment

Steven Enamakel6f1cb26a980f
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.rs
index a116b3ad7f..f6e8a8c09c 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
@@ -487,9 +487,8 @@ impl SpawnSubagentTool {
));
}
}
- // Capture the admitted parent generation before creating a worker
- // thread, writing a durable running session, or publishing spawn
- // events. A denied lifecycle admission must leave no phantom child.
+ // Capture the admitted parent generation before worker/session creation.
+ // Denied lifecycle admission must leave no phantom child or spawn event.
let completion_target =
match crate::agent::orchestration::background_completions::CompletionTarget::new(
dispatch.clone(),