Skip to content

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

chore: files changed crates/openhuman-core/src/flows/caps_host/agent_tests.rs

Steven Enamakelaedd3a1760d7
diff --git a/crates/openhuman-core/src/flows/caps_host/agent_tests.rs b/crates/openhuman-core/src/flows/caps_host/agent_tests.rs
index bfe631e3d6..ec459ebb98 100644
--- a/crates/openhuman-core/src/flows/caps_host/agent_tests.rs
+++ b/crates/openhuman-core/src/flows/caps_host/agent_tests.rs
@@ -349,6 +349,18 @@ async fn headless_flow_agent_includes_nested_grandchild_result() {
)
});
let grandchild_output = grandchild_jobs[0].output.as_deref().unwrap_or_default();
+ eprintln!(
+ "HEADLESS_NESTED_FLOW_COUNTS root_spawn={} worker_calls={} manager_calls={} grandchild_calls={} nested_spawn_calls={} jobs={:?}",
+ model.spawn_calls.load(std::sync::atomic::Ordering::SeqCst),
+ model.child_calls.load(std::sync::atomic::Ordering::SeqCst),
+ model.manager_calls.load(std::sync::atomic::Ordering::SeqCst),
+ model.grandchild_calls.load(std::sync::atomic::Ordering::SeqCst),
+ model.nested_spawn_calls.load(std::sync::atomic::Ordering::SeqCst),
+ snapshots
+ .iter()
+ .map(|job| (&job.agent, job.status))
+ .collect::<Vec<_>>(),
+ );
assert_eq!(
model.spawn_calls.load(std::sync::atomic::Ordering::SeqCst),
1,