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 Enamakel80ae0b33d2d1
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index 5d40444b6f..7ae4024613 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -79,8 +79,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
&self,
mut request: DriverRequest<OpenHumanRunContext>,
) -> Result<DriverOutcome, DriverFailure> {
- // Heal a head persisted before #6721 was fixed, before anything reads
- // the history: this turn then commits a clean generation.
+ // Heal an orphaned tool head before reading history.
repair_orphaned_tool_head(&mut request.history);
// These two inputs are prepared by the OpenHuman lifecycle hook for
// this exact request. Falling back to the snapshots captured when the
@@ -123,10 +122,8 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
outcome: None,
});
}
- // The harness drops its `AgentRun` on an error. Snapshot the exact
- // request boundary before assembling the graph so the error path can
- // persist only provider-accepted rounds, plus a display-only failure
- // record, without manufacturing a second host history.
+ // Snapshot the request boundary before assembling the graph so errors
+ // persist only provider-accepted rounds.
let snapshot = context_mw
.transcript_snapshot
.get_or_insert_with(|| {