Skip to content

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

fix(subagent_host): record completed usage with run id

Steven Enamakel7efe497879c6
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 b1a0ba56d3..e43d27c562 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -133,7 +133,8 @@ pub(crate) async fn run_subagent_direct(
}
impl UsageFinalizer {
fn finish(&mut self, entry: crate::agent::tinyagents::host::SubagentUsageEntry) {
- self.context.record_completed_subagent_usage(entry);
+ self.context
+ .record_completed_subagent_usage_with_run_id(self.run_id.clone(), entry);
self.complete = true;
}
}