Skip to content

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

fix(agent): capture terminal stop and turn from commit block

Steven Enamakel12c06de99df8
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index 6d8ca0a7d4..2f94703896 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -401,7 +401,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
// second history or transcript. The runtime only reads it from
// `after_commit`, so a failed/cancelled turn cannot publish its usage
// or tool outcomes as if they had become durable.
- {
+ let (terminal_stop, terminal_turn) = {
// Always billed: a repair that timed out after its call answered
// still recorded that call here.
let repair_usage = Some(&repair_usage);