The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(runtime): update message resolution to use channel context
Steven Enamakelbdcac306d385
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/native_media.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/native_media.rsindex 5ba4877ea4..c8c194ff63 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/native_media.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/native_media.rs@@ -35,7 +35,7 @@ pub(super) async fn resolve_typed_message(config: &crate::config::Config,envelope: &ChannelInboundEnvelope,thread_id: &str,- enriched_message: &str,+ channel_context: &str,) -> Result<Option<ResolvedNativeMessage>, String> {if !requires_typed_preparation(envelope) {return Ok(None);@@ -174,14 +174,9 @@ pub(super) async fn resolve_typed_message(staged_parts.push(staged);}- let model_parts = parts- .iter()- .filter(|part| matches!(part, ContentPart::Image { .. } | ContentPart::File { .. }))- .cloned()- .collect::<Vec<_>>();let message = match crate::agent::message_convert::user_message_from_parts(- enriched_message,- &model_parts,+ channel_context,+ &parts,) {Ok(message) => message,Err(error) => {diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rsindex bb2976103f..70a3660f49 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs@@ -383,7 +383,7 @@ pub(crate) async fn process_channel_runtime_message(&host.config,&envelope,&canonical_session_key,- &enriched_message,+ &channel_context,).await{