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
test(channels): update dispatch loop call for debounce config
Steven Enamakelaac61664b355
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/admit.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/admit.rsindex ac97076e67..cf6e4f3191 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/admit.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/admit.rs@@ -31,7 +31,7 @@ pub(crate) struct AdmittedInbound {pub(crate) legacy_history: Option<crate::channels::providers::relay::LegacyHistoryImport>,}-fn channel_inbound_preparation_request(+pub(super) fn channel_inbound_preparation_request(source: tinychannels_bus::module_inbound::ChannelInboundSource,preparation_mode: tinychannels_bus::module_inbound::ChannelInboundPreparationMode,) -> tinychannels_bus::module_inbound::PrepareChannelInboundRequest {@@ -43,7 +43,7 @@ fn channel_inbound_preparation_request(}}-fn inbound_console_preview(envelope: &ChannelInboundEnvelope, text: &str) -> String {+pub(super) fn inbound_console_preview(envelope: &ChannelInboundEnvelope, text: &str) -> String {let contains_audio = envelope.parts.iter().any(|part| {matches!(part,diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rsindex 5dfe13e2fd..f0cfd07821 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs@@ -20,6 +20,8 @@ use super::super::helpers::{};use super::super::host_agent::{self, HostRoute};use super::admit::{admit_runtime_message, AdmittedInbound};+#[cfg(test)]+use super::admit::{channel_inbound_preparation_request, inbound_console_preview};use super::approval::channel_has_approval_surface;use super::RuntimeChannelMessage;diff --git a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rsindex 1b2e032b57..99068b52e0 100644--- a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs+++ b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs@@ -117,7 +117,13 @@ async fn message_dispatch_processes_messages_in_parallel() {.unwrap();drop(tx);- run_message_dispatch_loop(rx, parallel_ctx, 2).await;+ run_message_dispatch_loop(+ rx,+ parallel_ctx,+ 2,+ crate::config::InboundDebounceConfig::disabled(),+ )+ .await;assert_eq!(peak_in_flight.load(Ordering::SeqCst), 2);let sent_messages = parallel_channel.sent_messages.lock().await;