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

Steven Enamakel1f9f9a9dd3a8
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_completion.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_completion.rs
index 5d2134a46f..ab7ed36e94 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_completion.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_completion.rs
@@ -185,7 +185,10 @@ pub(super) fn make_completion(
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
- stop: incomplete_stop(reason),
+ stop: incomplete_stop(
+ reason,
+ outcome.failure_cause.clone(),
+ ),
})
.await;
}