Skip to content

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

fix(tinyagents): clear model budget and dispatch admission on child runs

Steven Enamakele32df1f824cb
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
index e688db48d0..8d007e1817 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
@@ -640,6 +640,8 @@ impl OpenHumanRunContext {
// child's parks route through the origin and are marked detached, so
// their cards survive the parent turn's end (#5499).
child.approval = Default::default();
+ child.model_budget = None;
+ child.dispatch_admission = None;
child.dispatch = None;
child.subagent_usage = Arc::new(Mutex::new(Vec::new()));
child.parent_subagent_usage = None;