Skip to content

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

test(caps_host): run nested grandchild test on a large stack

Steven Enamakel62b3020b5db9
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 a3ae1fc45b..33f6c962b0 100644
--- a/crates/openhuman-core/src/flows/caps_host/agent_tests.rs
+++ b/crates/openhuman-core/src/flows/caps_host/agent_tests.rs
@@ -29,8 +29,23 @@ async fn production_harness_ceiling_is_open_and_reusable() {
assert!(!super::HARNESS_AGENT_SLOTS.is_closed());
}
-#[tokio::test]
-async fn headless_flow_agent_includes_nested_grandchild_result() {
+#[test]
+fn headless_flow_agent_includes_nested_grandchild_result() {
+ std::thread::Builder::new()
+ .stack_size(64 * 1024 * 1024)
+ .spawn(|| {
+ tokio::runtime::Builder::new_current_thread()
+ .enable_all()
+ .build()
+ .expect("test runtime")
+ .block_on(headless_flow_agent_includes_nested_grandchild_result_inner());
+ })
+ .expect("spawn test thread")
+ .join()
+ .expect("nested grandchild test thread");
+}
+
+async fn headless_flow_agent_includes_nested_grandchild_result_inner() {
use async_trait::async_trait;
use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};