Skip to content

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

refactor(subagent_host): use fully qualified path for lifecycle outcome

Steven Enamakel37488aee219b
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index 88479ca2d5..342a249e31 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -999,7 +999,7 @@ fn outcome_to_host(
SubagentOutcomeKind::Incomplete(incomplete) => SubagentRunStatus::Incomplete {
failure_cause: outcome
.extensions
- .get(super::lifecycle_outcome::CLASSIFIED_STOP_CAUSE_EXTENSION)
+ .get(lifecycle_outcome::CLASSIFIED_STOP_CAUSE_EXTENSION)
.and_then(|value| {
Some(tinyagents_harness::no_progress::ClassifiedStopCause {
class: value.get("class")?.as_str()?.to_string(),
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
index 9f7a1e263d..8601f37996 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
@@ -307,7 +307,7 @@ async fn subagent_runs_through_the_graph_engine_with_real_tools() {
allowed.insert("echo".to_string());
let mut history = vec![TranscriptMessage::user("please echo hi")];
- let (output, iterations, usage, early_exit, hit_cap, _breaker) = run_subagent_via_graph(
+ let (output, iterations, usage, early_exit, hit_cap, _breaker, _failure_cause) = run_subagent_via_graph(
crate::agent::tinyagents::TurnModelSource::from_model(provider),
"mock-model",
0.0,
@@ -393,7 +393,7 @@ async fn child_text_and_thinking_deltas_are_scoped_to_the_subagent() {
let parent_tools: Arc<Vec<Box<dyn Tool>>> = Arc::new(vec![]);
let mut history = vec![TranscriptMessage::user("hi")];
- let (output, _iters, _usage, _early, _hit_cap, _breaker) = run_subagent_via_graph(
+ let (output, _iters, _usage, _early, _hit_cap, _breaker, _failure_cause) = run_subagent_via_graph(
crate::agent::tinyagents::TurnModelSource::from_model(Arc::new(ThinkingStreamProvider)),
"mock-model",
0.0,
@@ -529,7 +529,7 @@ async fn ask_user_clarification_pauses_and_surfaces_the_question() {
allowed.insert("ask_user_clarification".to_string());
let mut history = vec![TranscriptMessage::user("help me")];
- let (output, iterations, _usage, early_exit, _hit_cap, _breaker) = run_subagent_via_graph(
+ let (output, iterations, _usage, early_exit, _hit_cap, _breaker, _failure_cause) = run_subagent_via_graph(
crate::agent::tinyagents::TurnModelSource::from_model(provider.clone()),
"mock-model",
0.0,
@@ -621,7 +621,7 @@ async fn cap_hit_summarizes_a_resumable_checkpoint() {
allowed.insert("noop".to_string());
let mut history = vec![TranscriptMessage::user("do a big task")];
- let (output, iterations, _usage, early_exit, hit_cap, _breaker) = run_subagent_via_graph(
+ let (output, iterations, _usage, early_exit, hit_cap, _breaker, _failure_cause) = run_subagent_via_graph(
crate::agent::tinyagents::TurnModelSource::from_model(Arc::new(LoopForeverProvider)),
"mock-model",
0.0,