Skip to content

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

chore(session_host): trim redundant comments in session driver

Steven Enamakele53a6f44de2f
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index d84124a587..a5c5289f49 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -243,15 +243,13 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
},
));
}
- // A cap pause is advisory in the harness. Treat an exhausted loop
- // without a usable final response as capped even if that pause arrived
- // after the loop's own limit check.
+ // Treat an exhausted loop without a final response as capped even if
+ // the harness pause arrived after its own limit check.
outcome.hit_cap |= outcome.text.trim().is_empty()
&& (outcome.model_calls >= self.max_iterations
|| outcome.tool_calls >= self.max_iterations
|| outcome.tool_outcomes.len() >= self.max_iterations);
- // Older hosted-harness paths materialize this fallback before exposing
- // the outcome, which leaves the raw call counters unavailable here.
+ // Older hosted-harness fallbacks leave the raw counters unavailable.
// It is only produced when the loop exhausted a tool round without a
// model conclusion, so normalize it to the same resumable cap state.
let exhausted_fallback = outcome
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index 9aadc63b0f..8bc525f2f8 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -63,7 +63,6 @@ pub(super) struct OpenHumanSessionState {
pub(super) reply_language_directive: Option<String>,
pub(super) time_zone: Option<String>,
prelude: Option<OpenHumanTurnPrelude>,
- /// Deferred native terminal, finalized after transcript durability.
active_terminal_sidecar: Option<ActiveTerminalSidecar>,
/// The previous turn's deferred post-commit work (thread-goal
/// accounting). The next turn awaits it before loading the goal