Skip to content

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

fix(subagent_host): box the typed prompt future to avoid stack overflow

Steven Enamakel56b63e6dac64
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 9b5741d374..e429c9f3d7 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -767,7 +767,8 @@ async fn run_typed_mode(
agents_md_local: agents_md.local.clone(),
};
- let archetype_prompt_body = load_typed_prompt_source(definition, config, prompt_ctx).await?;
+ let archetype_prompt_body =
+ Box::pin(load_typed_prompt_source(definition, config, prompt_ctx)).await?;
let system_prompt = match &definition.system_prompt {
// The whole prompt, with no sub-agent sections around it.
PromptSource::Dynamic(_) | PromptSource::Verbatim(_) => archetype_prompt_body,