Skip to content

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

feat(subagent-host): return typed stop cause from graph dispatch

Steven Enamakel9c87a2c7014f
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs
index 91e723aac4..b5aa371405 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs
@@ -88,6 +88,9 @@ pub(in super::super) async fn run_subagent_via_graph(
// repeat-progress circuit breaker stopped the run; the caller reports
// `Incomplete` instead of `Completed`.
Option<String>,
+ // Typed cause is carried beside the display reason so callers do not
+ // need to reconstruct failure class or operation from prose.
+ Option<tinyagents_harness::no_progress::ClassifiedStopCause>,
),
SubagentRunError,
> {
@@ -559,6 +562,7 @@ pub(in super::super) async fn run_subagent_via_graph(
outcome.hit_cap,
// #4466: propagate a circuit-breaker halt so the runner reports Incomplete.
outcome.breaker_halt,
+ outcome.failure_cause,
))
}