The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(subagent-host): surface classified stop cause on incomplete runs
Steven Enamakel15faa7a3e6ef
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rsindex eb3d6ed47b..88479ca2d5 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs@@ -997,8 +997,17 @@ fn outcome_to_host(checkpoint: None,},SubagentOutcomeKind::Incomplete(incomplete) => SubagentRunStatus::Incomplete {+ failure_cause: outcome+ .extensions+ .get(super::lifecycle_outcome::CLASSIFIED_STOP_CAUSE_EXTENSION)+ .and_then(|value| {+ Some(tinyagents_harness::no_progress::ClassifiedStopCause {+ class: value.get("class")?.as_str()?.to_string(),+ operation: value.get("operation")?.as_str()?.to_string(),+ summary: incomplete.reason.clone(),+ })+ }),reason: incomplete.reason,- failure_cause: None,},SubagentOutcomeKind::Cancelled => SubagentRunStatus::Cancelled,};diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rsindex 31db51b00e..52f3bb9a82 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs@@ -5,7 +5,7 @@ use super::*;/// The host's in-flight subagent runs of one agent context.pub(super) type HostInFlightMap = AsyncMutex<HashMap<HostLifecycleKey, Arc<HostInFlight>>>;-const CLASSIFIED_STOP_CAUSE_EXTENSION: &str = "openhuman.classified_stop_cause";+pub(super) const CLASSIFIED_STOP_CAUSE_EXTENSION: &str = "openhuman.classified_stop_cause";pub(super) fn host_outcome_to_neutral(outcome: SubagentRunOutcome,