Skip to content

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

fix(session_host): remove unused terminal tuple binding in driver

Steven Enamakel34491c8632ad
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index a273366bbd..f5981f2cc8 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -306,7 +306,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
// the durable reply an explicit checkpoint.
if outcome.text.trim().is_empty()
&& output.starts_with("I finished this turn without writing up a result.")
- let (terminal_stop, terminal_turn) = {
+ {
output = crate::agent::session_host::turn_checkpoint::build_deterministic_checkpoint(
&crate::agent::session_host::turn_checkpoint::results_from_tool_outcomes(
&outcome.tool_outcomes,
@@ -482,7 +482,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
}
observed.resolved_route = outcome.resolved_route.clone();
observed.deferred_terminal = outcome.deferred_terminal.take();
- (observed.stop.clone(), (observed.model_calls as u32).max(1))
+ observed.stop.clone()
};
// The turn compacted its context: persist the compacted history, so the
// next turn starts from the checkpoint. The runtime session seals the