Skip to content

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

refactor(session_host): extract driver loop into helper

Steven Enamakelf3f111de9d15
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index 829c0fef07..9f3898fd50 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -557,6 +557,8 @@ fn driver_error_with_snapshot(
observed.input_tokens = guard.input_tokens;
observed.output_tokens = guard.output_tokens;
observed.cached_input_tokens = guard.cached_input_tokens;
+ observed.last_call_input_tokens = guard.last_call_input_tokens;
+ observed.last_call_output_tokens = guard.last_call_output_tokens;
observed.cost_usd = if guard.charged_amount_usd > 0.0 {
guard.charged_amount_usd
} else {