Skip to content

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

feat(agent): add async subagent spawn execution tool

Steven Enamakelb138ae8b274a
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 5178a8b627..7846345b5d 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
@@ -511,13 +511,10 @@ impl SpawnAsyncSubagentTool {
iterations: outcome.iterations as u32,
output_chars: outcome.output.chars().count(),
output: outcome.output.clone(),
- // Detached by construction:
- // this tool takes
- // `detached_child()`, so this
- // child's spend never reached
- // the parent turn's ledger and
- // `chat_done` does not contain
- // it. See the field's docs.
+ // Detached by construction: this tool
+ // takes `detached_child()`, so this child's
+ // spend never reached the parent turn's
+ // ledger or `chat_done`. See the field docs.
usage: Some(outcome.usage),
worktree_path: None,
changed_files: Vec::new(),
@@ -587,18 +584,15 @@ impl SpawnAsyncSubagentTool {
iterations: outcome.iterations as u32,
output_chars: outcome.output.chars().count(),
output: outcome.output.clone(),
- // Detached by construction:
- // this tool takes
- // `detached_child()`, so this
- // child's spend never reached
- // the parent turn's ledger and
- // `chat_done` does not contain
- // it. See the field's docs.
+ // Detached by construction: this tool
+ // takes `detached_child()`, so this child's
+ // spend never reached the parent turn's
+ // ledger or `chat_done`. See the field docs.
usage: Some(outcome.usage),
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
- stop: None,
+ stop: incomplete_stop(reason),
})
.await;
}