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
refactor(subagent_host): remove duplicate incomplete run status helper
Steven Enamakel510f4f85aab5
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rsindex 83820ecf5a..8857d59cf3 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs@@ -41,19 +41,6 @@ pub(super) fn incomplete_run_status(}}-pub(super) fn incomplete_run_status(- reason: String,- extensions: &std::collections::BTreeMap<String, serde_json::Value>,-) -> SubagentRunStatus {- let failure_cause = extensions- .get(CLASSIFIED_STOP_CAUSE_EXTENSION)- .and_then(|value| decode_classified_stop_cause(value, &reason));- SubagentRunStatus::Incomplete {- reason,- failure_cause,- }-}-pub(super) fn host_outcome_to_neutral(outcome: SubagentRunOutcome,definition: &crate::agent::harness::host_definition::AgentDefinition,diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rsindex 180ab21e68..e04652cef5 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome_tests.rs@@ -43,9 +43,9 @@ fn host_incomplete_status_round_trips_through_neutral_persistence() {output: "partial".into(),iterations: 2,elapsed: std::time::Duration::from_millis(10),- mode: SubagentMode::Typed,+ mode: crate::agent::subagent_host::SubagentMode::Typed,status: SubagentRunStatus::Incomplete {- reason: cause.summary.clone(),+ reason: "stopped before finishing; reconcile external state".into(),failure_cause: Some(cause),},final_history: Vec::new(),@@ -105,7 +105,7 @@ fn host_incomplete_status_round_trips_through_neutral_persistence() {panic!("typed stop cause survives neutral persistence");};- assert_eq!(reason, "private URL https://example.com/private?q=secret");+ assert_eq!(reason, "stopped before finishing; reconcile external state");assert_eq!(cause.class, "uncertain_side_effect");assert_eq!(cause.operation, "web_answer_tool");assert_eq!(cause.summary, reason);