Skip to content

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

docs(agent): clarify turn origin inheritance comment

Steven Enamakel5fad13eafb7f
diff --git a/crates/openhuman-core/src/agent/turn_origin.rs b/crates/openhuman-core/src/agent/turn_origin.rs
index e95b1322d4..f6fcfbcfc9 100644
--- a/crates/openhuman-core/src/agent/turn_origin.rs
+++ b/crates/openhuman-core/src/agent/turn_origin.rs
@@ -295,11 +295,10 @@ pub async fn with_inherited_origin<F: std::future::Future>(
/// fresh task where [`current`] is `None`, so every external-effect tool it
/// calls reaches the approval gate as [`AgentTurnOrigin::Unknown`] and is
/// refused — even though the parent turn that delegated the work was properly
-/// labelled. That is the same failure mode
-/// the parent `ParentExecutionContext`
-/// and an explicit [`OpenHumanRunContext`](crate::agent::tinyagents::host::OpenHumanRunContext)
-/// already re-install explicitly at those spawn sites; the origin is the third
-/// thing that has to travel with them.
+/// labelled. The parent `ParentExecutionContext` and an explicit
+/// [`OpenHumanRunContext`](crate::agent::tinyagents::host::OpenHumanRunContext)
+/// already travel explicitly to those spawn sites; the origin still has to be
+/// carried with them.
///
/// **Call this on the parent task**, i.e. build the future *before* handing it
/// to `tokio::spawn` — the origin is read when this function is called, not