Skip to content

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

chore(orchestration): reflow long comment in spawn_async_subagent_execute

Steven Enamakel8bac461af51d
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 3550487d61..01bd80acd6 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
@@ -104,19 +104,17 @@ impl SpawnAsyncSubagentTool {
.or(run_context.thread_id.as_deref())
.map(str::to_owned);
- // Async delivery is thread-addressed: the finished result is inserted
- // back into the parent chat thread as a follow-up turn
- // (`background_delivery`). Outside a chat turn (flow `agent` nodes,
- // CLI and cron runs intentionally have no parent thread to deliver into, so
- // `background_delivery::deliver_batch` logs "dropping headless batch"
- // and the (possibly real, completed) work is silently discarded — the
- // caller sees "Accepted" and never learns the result never arrived.
- // Fail loudly instead: the caller has a synchronous alternative
- // (`spawn_subagent` with `blocking: true`, or a `delegate_*` tool).
- // Both of those self-heal to blocking dispatch in this situation
- // rather than reaching this guard — see the `has_delivery_thread`
- // checks in `spawn_subagent.rs` and `dispatch.rs::dispatch_subagent`.
- // Only a *direct* `spawn_async_subagent` call lands here.
+ // Async delivery is thread-addressed: the finished result is inserted back into the
+ // parent chat thread as a follow-up turn (`background_delivery`). Outside a chat turn
+ // (flow `agent` nodes, CLI and cron runs intentionally have no parent thread to deliver
+ // into, so `background_delivery::deliver_batch` logs "dropping headless batch" and the
+ // (possibly real, completed) work is silently discarded — the caller sees "Accepted" and
+ // never learns the result never arrived. Fail loudly instead: the caller has a
+ // synchronous alternative (`spawn_subagent` with `blocking: true`, or a `delegate_*`
+ // tool). Both of those self-heal to blocking dispatch in this situation rather than
+ // reaching this guard — see the `has_delivery_thread` checks in `spawn_subagent.rs` and
+ // `dispatch.rs::dispatch_subagent`. Only a *direct* `spawn_async_subagent` call lands
+ // here.
if parent_thread_id.is_none() {
log::warn!(
"[spawn_async_subagent] refusing fire-and-forget spawn with no delivery thread \