Skip to content

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

fix(tests): make stack overflow regression test stack size configurable

Steven Enamakele1964a2d8840
diff --git a/tests/composio_list_tools_stack_overflow_regression.rs b/tests/composio_list_tools_stack_overflow_regression.rs
index efaa99a0ed..c58d8d66d7 100644
--- a/tests/composio_list_tools_stack_overflow_regression.rs
+++ b/tests/composio_list_tools_stack_overflow_regression.rs
@@ -317,7 +317,7 @@ fn composio_list_tools_via_subagent_runs_on_production_worker_stack() {
// real production budget and trips if the tower outgrows it.
let rt = tokio::runtime::Builder::new_multi_thread()
.worker_threads(2)
- .thread_stack_size(AGENT_WORKER_STACK_BYTES)
+ .thread_stack_size(std::env::var("STACK_KB").ok().and_then(|v| v.parse::<usize>().ok()).map(|k| k*1024).unwrap_or(AGENT_WORKER_STACK_BYTES))
.enable_all()
.build()
.expect("build runtime");