Skip to content

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

chore(agent): tighten comments in session and subagent hosts

Steven Enamakelebedb11917c1
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index 41a4133dc5..c36532f903 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -468,8 +468,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
observed.tool_outcomes = outcome.tool_outcomes.clone();
observed.hit_cap = outcome.hit_cap;
observed.wrap_up_injected = outcome.wrap_up_injected;
- // How the harness stopped the turn, if it did. The wind-down
- // middleware marked the sidecar during the run.
+ // Preserve the harness stop reason and the wind-down sidecar marker.
observed.stop = crate::agent::session_host::stop_summary::classify_stop_with_cause(
outcome.breaker_halt.as_deref(),
outcome.failure_cause.clone(),
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index e0a8783522..41c68062c3 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -413,8 +413,7 @@ fn workspace_descriptor_for_subagent(
/// `Config::load_or_init()` is **not cached** — it re-resolves the config dirs
/// and re-reads `config.toml` on every call. `run_typed_mode` needed it in six
/// places, so a single sub-agent spawn used to hit the disk six times and could
-/// observe six *different* configs if the file changed mid-spawn. One snapshot
-/// is both cheaper and more coherent.
+/// observe six *different* configs if the file changed mid-spawn.
///
/// The error is captured as a `String` rather than dropped to `Option` so the
/// sites that log it can say why the config was unavailable; every site