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(channels): simplify streaming progress setup in turn processor
Steven Enamakelafae2b7ff636
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rsindex 225a3c4b10..2159ba613d 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs@@ -280,7 +280,7 @@ pub(crate) async fn process_channel_runtime_message(.is_some_and(|ch| ch.supports_draft_updates());// Set up streaming channel if supported- let (progress_tx, progress_rx) = if native_reply.is_some() || use_streaming {+ let (progress_tx, progress_rx) = if use_streaming {let (tx, rx) = tokio::sync::mpsc::channel::<AgentProgress>(64);(Some(tx), Some(rx))} else {@@ -310,10 +310,7 @@ pub(crate) async fn process_channel_runtime_message(};// Spawn a task to forward streaming progress to draft updates- let draft_updater = if let Some(reply) = native_reply.clone() {- progress_rx- .map(|rx| AbortOnDropHandle::new(super::progressive::spawn_native_progress(rx, reply)))- } else if let (Some(mut rx), Some(draft_id_ref), Some(channel_ref)) = (+ let draft_updater = if let (Some(mut rx), Some(draft_id_ref), Some(channel_ref)) = (progress_rx,draft_message_id.as_deref(),target_channel.as_ref(),