Skip to content

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

chore(subagent_host): disable flow prompt loading for stack comparison

Steven Enamakelc8d8daba8a4f
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 8fc7f192fb..1809277e76 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -289,7 +289,7 @@ pub(crate) async fn run_subagent_direct(
.await
.map(std::sync::Arc::new)
.map_err(|e| e.to_string());
- let flow_archetype_text = Box::pin(load_flow_prompt(definition, &loaded_config)).await?;
+ let flow_archetype_text: Option<String> = None; // controlled stack comparison
tracing::info!(
agent_id = %definition.id,
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_flow_prompt_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_flow_prompt_tests.rs
index ca13b4fb98..af0642074e 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_flow_prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_flow_prompt_tests.rs
@@ -63,7 +63,6 @@ async fn typed_flow_builtin_requires_its_loaded_config() {
.get("workflow_builder")
.expect("workflow_builder builtin");
let temp = tempfile::tempdir().expect("workspace");
- let context = prompt_context(temp.path(), "workflow_builder");
let loaded_config = Err("config unavailable".into());
let error = load_flow_prompt(definition, &loaded_config)
.await