Skip to content

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

refactor(tinyagents): extract run context into its own module

Steven Enamakel2536a6f4feca
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
index 045423f5a8..302a55df45 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
@@ -312,10 +312,8 @@ pub struct OpenHumanRunContext {
/// The context the turn runs under, read by tools, middleware and the
/// provider factory instead of the ambient scope. Children inherit it.
pub core: Option<std::sync::Weak<crate::core::runtime::CoreContext>>,
- /// The transcript store of this turn tree: the root session's own
- /// (`OpenHumanSessionHost::session_locator`), so a sub-agent's transcript
- /// lands beside its parent's under the same store key. Children inherit
- /// it; `None` for a run no session started.
+ /// The turn tree's transcript store (the root session's locator), where
+ /// sub-agent transcripts land under the parent's store key. Inherited.
pub transcripts: Option<Arc<dyn tinyagents_session::transcript::TranscriptLocator>>,
/// File-state identity used to detect stale parent reads after child writes.
pub file_state_agent_id: Option<String>,