Skip to content

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

feat(runtime): add host dispatch context to message resolution

Steven Enamakel187afd64ca72
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
index acef64acbb..47443bf958 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
@@ -376,8 +376,10 @@ pub(crate) async fn process_channel_runtime_message(
};
let native_preparation = if typed_envelope_input {
if let Some(host) = selected_host.as_ref() {
+ let host_dispatch = crate::core::runtime::DispatchCtx::new(Arc::clone(&host.context));
match super::native_media::resolve_typed_message(
&ctx,
+ &host_dispatch,
&host.config,
&envelope,
&prepared_thread_id,