Skip to content

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

refactor(spawn_subagent): return plain success for completed subagent runs

Steven Enamakel9d3821570f21
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
index b6aa076b8f..4e05020954 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
@@ -482,7 +482,7 @@ impl SpawnSubagentTool {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
- stop: incomplete_stop(&reason),
+ stop: None,
})
.await;
}
@@ -501,13 +501,7 @@ impl SpawnSubagentTool {
delegation unchanged.",
outcome.task_id, outcome.agent_id, outcome.output,
);
- Ok(stopped_subagent_result(
- "spawn_subagent",
- &outcome.agent_id,
- &outcome.task_id,
- &reason,
- envelope,
- ))
+ Ok(ToolResult::success(envelope))
}
SubagentRunStatus::Cancelled => {
tracing::info!(