Skip to content

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

test(flows): assert parked runs preserve engine output

Steven Enamakela2150c326f1d
diff --git a/crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs b/crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs
index c9eb26ff8b..7a946119ae 100644
--- a/crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_run_lifecycle_tests.rs
@@ -381,6 +381,11 @@ async fn flows_run_reports_pending_approval_and_blocks_downstream() {
let pending = outcome.value["pending_approvals"].as_array().unwrap();
assert!(pending.iter().any(|v| v == "gate"));
+ assert_eq!(
+ outcome.value["output"]["run"]["trigger"],
+ json!({ "x": 1 }),
+ "parked runs preserve the engine output already available to the legacy RPC"
+ );
assert!(outcome.value["output"]["nodes"]["downstream"].is_null());
let reloaded = flows_get(&config, &created.value.id).await.unwrap();