Skip to content

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

chore: files changed crates/openhuman-core/src/agent/subagent_host/ops/runner.rs

Steven Enamakel1b1bae78ac7f
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 b54b1b58b3..e0108e06e6 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -707,14 +707,15 @@ async fn run_typed_mode(
let filtered_specs = crate::agent::session_host::dedup_visible_tool_specs(filtered_specs);
let filtered_specs = dedup_tool_specs_by_name(&definition.id, filtered_specs);
+ let iteration_cap = subagent_iter_cap_with_autonomous_lift(
+ options.run_context.autonomous_iter_cap,
+ definition.effective_max_iterations(),
+ );
tracing::debug!(
agent_id = %definition.id,
model = %model,
tool_count = allowed_names.len(),
- max_iterations = subagent_iter_cap_with_autonomous_lift(
- options.run_context.autonomous_iter_cap,
- definition.effective_max_iterations(),
- ),
+ max_iterations = iteration_cap,
iteration_policy = ?definition.iteration_policy,
"[subagent_host:typed] resolved configuration"
);
@@ -926,10 +927,7 @@ async fn run_typed_mode(
Vec::new(),
filtered_specs.clone(),
allowed_names,
- subagent_iter_cap_with_autonomous_lift(
- options.run_context.autonomous_iter_cap,
- definition.effective_max_iterations(),
- ),
+ iteration_cap,
options.run_queue.clone(),
parent.on_progress.clone(),
&definition.id,