Skip to content

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

fix(subagent_host): return cached outcome for observer-cancelled runs

Steven Enamakeld38c0cd32e19
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_result.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_result.rs
index eb8b57aa73..066e46d2da 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_result.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_result.rs
@@ -94,6 +94,11 @@ pub(crate) async fn resolve_inline_driver_outcome(
return Ok((host, public_job_id));
}
+ if let Some(outcome) = cached.filter(|host| {
+ host.persistence_disposition == SubagentPersistenceDisposition::ObserverCancelled
+ }) {
+ return Ok((outcome, public_job_id));
+ }
Err(SubagentRunError::Provider(anyhow::anyhow!(
"driver-backed subagent returned without a durable host outcome"
)))