Skip to content

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

docs(subagent-host): clarify stack-overflow regression coverage

Steven Enamakel2256e3a93cf9
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index 45f6875496..41c68062c3 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -110,10 +110,9 @@ pub(crate) async fn run_subagent_direct_with_native_context(
// state) onto tokio's 2 MiB worker stack and abort with "thread
// 'tokio-rt-worker' has overflowed its stack, fatal runtime error:
// stack overflow" — observed at `[subagent_host] dispatching
- // agent_id=<worker> ...` in the historical chat-harness subagent lane
- // crash (the browser spec is now skipped under #6389). The inner
- // `Box::pin`s around `run_typed_mode` and the child's tinyagents drive
- // future further chunk the child's state so
+ // agent_id=<worker> ...` in the `chat-harness-subagent` Playwright
+ // lane crash. The inner `Box::pin`s around `run_typed_mode` and the
+ // child's tinyagents drive future further chunk the child's state so
// a single sub-agent run can't blow the stack either.
Box::pin(async move {
// A nested delegate writes its terminal total to this run's isolated
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs
index e3dcc53ece..a665d6c8ab 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs
@@ -572,12 +572,15 @@ fn unsigned_in_user_fails_probe() {
/// `thread 'tokio-rt-worker' has overflowed its stack, fatal runtime
/// error: stack overflow`.
///
-/// The former desktop end-to-end regression flow is currently skipped under
-/// #6389, so it is not current pass evidence. The scripted path here has much
-/// smaller per-frame state than production, and a single stack size doesn't
-/// cleanly bracket boxed-vs-unboxed — we use the loose 1 MiB worker stack as a
-/// smoke check that the dispatch path remains poll-bounded after refactors.
-/// See `subagent_host/ops.rs` `Box::pin` callsites for the structural fix.
+/// The deep ground-truth regression catcher for this is the
+/// `chat-harness-subagent.spec.ts` Playwright spec, which exercises the
+/// real orchestrator → researcher dispatch end-to-end (real provider
+/// stream, real config load, real tool registry). The scripted unit
+/// path here has much smaller per-frame state than production, so a
+/// single stack size doesn't cleanly bracket boxed-vs-unboxed — we use
+/// the loose 1 MiB worker stack as a smoke check that the dispatch
+/// path remains poll-bounded after refactors. See `subagent_host/
+/// ops.rs` `Box::pin` callsites for the structural fix.
#[test]
fn nested_subagent_dispatch_runs_on_a_constrained_worker_stack() {
use async_trait::async_trait;