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 runtime adapter tests into a dedicated module

Steven Enamakel8081fbbcddbf
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
index d1d5f3b567..cc249c5274 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
@@ -216,6 +216,9 @@ fn last_turn_usage_reports_the_same_holistic_totals_as_transcript_billing() {
assert_eq!(usage.cached_input_tokens, 4);
assert!((usage.cost_usd - 0.005).abs() < f64::EPSILON);
assert_eq!(usage.context_window, 128_000);
+ // The gauge numerator is the root's final call alone: neither the turn's
+ // summed spend nor the child's tokens, which ran in their own window.
+ assert_eq!(usage.context_tokens, 11);
assert_eq!(usage.subagents.len(), 1, "detail breakdown is retained");
}