Skip to content

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

fix(agent): pass failure cause to incomplete stop handling

Steven Enamakel1f8912522120
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 a5cde7a08e..80c8cd3c5a 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
@@ -495,7 +495,7 @@ impl SpawnAsyncSubagentTool {
.await;
}
}
- SubagentRunStatus::Incomplete { ref reason, .. } => {
+ SubagentRunStatus::Incomplete { ref reason, ref failure_cause } => {
// Async sub-agent stopped short (stuck halt / iteration
// cap). Mark the session finished and deliver the PARTIAL
// progress back to the parent, framed so it is not
@@ -564,7 +564,7 @@ impl SpawnAsyncSubagentTool {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
- stop: incomplete_stop(reason),
+ stop: incomplete_stop(reason, failure_cause.as_ref()),
})
.await;
}