Skip to content

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

test(subagent_host): cover awaiting user outcome in driver error decoding

Steven Enamakel637f7b170f72
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
index 1bd6cfa8bd..d950237a02 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
@@ -131,6 +131,14 @@ fn driver_error_does_not_hide_completed_mismatched_or_persistence_failures() {
.unwrap_err();
assert!(error.to_string().contains("driver-backed async spawn failed"));
+ bundle.host_outcome.lock().unwrap().insert(
+ task_key.clone(),
+ cached_outcome(SubagentRunStatus::AwaitingUser {
+ question: "Need clarification".into(),
+ options: None,
+ checkpoint: None,
+ }),
+ );
let error = decode_driver_job_result(
lifecycle_error("awaiting_input", ""),
&bundle,