Skip to content

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

fix(host_agent): use scoped core context when routing

Steven Enamakel986f5c5572c9
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
index c4e5d3b2a5..bf70522fad 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
@@ -55,7 +55,7 @@ pub(crate) fn bound_agent_id<'a>(config: &'a Config, channel: &str) -> Option<&'
pub(crate) fn route(ctx: &ChannelRuntimeContext, channel: &str) -> HostRoute {
if let Some(capabilities) = crate::profiles::capabilities::ProfileCapabilities::current() {
if let (Some(context), Some(config), Some(definitions)) = (
- crate::core::runtime::CoreContext::current(),
+ crate::core::runtime::CoreContext::scoped(),
ctx.config.as_ref(),
crate::agent::harness::definition::AgentDefinitionRegistry::current(),
) {