Skip to content

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

feat(agent): add parent context builder for orchestration

Steven Enamakel8f480933b491
diff --git a/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs b/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs
index 9bff64d59a..b321c917d0 100644
--- a/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs
+++ b/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs
@@ -119,7 +119,7 @@ pub(crate) async fn build_root_parent(
session_parent_prefix: agent.session_parent_prefix().map(str::to_string),
on_progress: None,
run_queue: None,
- host_env: Default::default(),
+ host_env: agent.host_env().clone(),
})
}
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 8c02360197..9f07019758 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -96,6 +96,7 @@ struct OpenHumanTurnPrelude {
on_progress: Option<tokio::sync::mpsc::Sender<crate::agent::progress::AgentProgress>>,
run_queue:
Option<Arc<tinyagents_harness::run_queue::RunQueue<crate::agent::queued_turn::QueuedTurn>>>,
+ host_env: crate::agent::turn_env::HostTurnEnv,
allowed_subagent_ids: std::collections::HashSet<String>,
sandbox_mode: tinyagents_definition::SandboxMode,
definition: Option<Arc<crate::agent::harness::host_definition::AgentDefinition>>,
@@ -775,6 +776,7 @@ impl OpenHumanSessionHost {
session_parent_prefix: self.session_parent_prefix.clone(),
on_progress: self.on_progress.clone(),
run_queue: self.run_queue.clone(),
+ host_env: self.host_env.clone(),
allowed_subagent_ids: self
.resolved_definition()
.map(|definition| definition.allowed_subagent_ids().into_iter().collect())