The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/agent/session_host/driver.rs,crates/openhuman-core/sr
Steven Enamakel084cfcf2f3ef
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex 9f3898fd50..02c9bdd325 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -395,9 +395,10 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {+ repair_usage.map(|usage| usage.charged_amount_usd).unwrap_or_default();- let loop_last_call = snapshot.lock().ok().map(|guard| {- (guard.last_call_input_tokens, guard.last_call_output_tokens)- });+ let loop_last_call = snapshot+ .lock()+ .ok()+ .map(|guard| (guard.last_call_input_tokens, guard.last_call_output_tokens));(observed.last_call_input_tokens,observed.last_call_output_tokens,diff --git a/crates/openhuman-core/src/agent/session_host/driver_tests.rs b/crates/openhuman-core/src/agent/session_host/driver_tests.rsindex 7a54bf1d63..0ade713d73 100644--- a/crates/openhuman-core/src/agent/session_host/driver_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/driver_tests.rs@@ -240,7 +240,11 @@ fn final_call_tokens_prefer_the_newest_call_that_reached_the_provider() {);// A close that recorded no provider usage did not make the final call.assert_eq!(- final_call_tokens(loop_last, Some(&grounded_close::RepairUsage::default()), None),+ final_call_tokens(+ loop_last,+ Some(&grounded_close::RepairUsage::default()),+ None+ ),(90_000, 400));assert_eq!(final_call_tokens(None, None, None), (0, 0));