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 runtime test assertions and setup
Steven Enamakela1c51be50dc7
diff --git a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rsindex 96323ffdb1..07ee75062b 100644--- a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs+++ b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs@@ -1,12 +1,12 @@-use super::super::context::{ChannelRuntimeContext, CHANNEL_MESSAGE_TIMEOUT_SECS};+use super::super::context::{CHANNEL_MESSAGE_TIMEOUT_SECS, ChannelRuntimeContext};use super::super::runtime::test_support::{- linked_telegram_runtime, run_dispatch_harness, DispatchHarnessOptions,+ DispatchHarnessOptions, linked_telegram_runtime, run_dispatch_harness,};use super::super::runtime::{- process_channel_message, run_message_dispatch_loop, RuntimeChannelMessage,+ RuntimeChannelMessage, process_channel_message, run_message_dispatch_loop,};-use super::common::{use_real_agent_handler, RecordingChannel, SlowModel};-use crate::agent::bus::{mock_agent_run_turn, AgentTurnRequest, AgentTurnResponse};+use super::common::{RecordingChannel, SlowModel, use_real_agent_handler};+use crate::agent::bus::{AgentTurnRequest, AgentTurnResponse, mock_agent_run_turn};use crate::channels::runtime::ChannelHandle;use crate::core::events::DomainEvent;use crate::inference::provider;@@ -126,7 +126,7 @@ async fn message_dispatch_processes_messages_in_parallel() {}#[tokio::test]-async fn process_channel_message_cancels_scoped_typing_task() {+async fn process_channel_message_sends_typing_before_the_provider_reply() {let _bus_guard = use_real_agent_handler().await;let linked = linked_telegram_runtime().await;let channel = linked@@ -196,7 +196,7 @@ async fn process_channel_message_cancels_scoped_typing_task() {.filter(|path| path.ends_with("/sendChatAction")).count(),1,- "a short turn should send the immediate typing action; stop cancels the local refresher without provider I/O: {requests:?}"+ "a short turn should send one immediate typing action; provider stop cancels the local refresher without network I/O: {requests:?}");assert_eq!(requestsdiff --git a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rsindex 335fd40c3e..5b8f057b9e 100644--- a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs+++ b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs@@ -1,6 +1,6 @@use super::super::context::{- conversation_history_key, ChannelRouteSelection, ChannelRuntimeContext,- CHANNEL_MESSAGE_TIMEOUT_SECS,+ CHANNEL_MESSAGE_TIMEOUT_SECS, ChannelRouteSelection, ChannelRuntimeContext,+ conversation_history_key,};use super::super::runtime::process_channel_message;use super::super::runtime::test_support::linked_telegram_runtime;@@ -44,7 +44,7 @@ async fn process_channel_message_executes_native_tool_calls() {inference_url: None,reliability: Arc::new(crate::config::ReliabilityConfig::default()),provider_runtime_options: provider::ProviderRuntimeOptions::default(),- workspace_dir: Arc::new(_linked.config().workspace_dir.clone()),+ workspace_dir: Arc::new(std::env::temp_dir()),message_timeout_secs: CHANNEL_MESSAGE_TIMEOUT_SECS,multimodal: crate::config::MultimodalConfig::default(),multimodal_files: crate::config::MultimodalFileConfig::default(),@@ -123,7 +123,7 @@ async fn process_channel_message_handles_models_command_without_llm_call() {inference_url: None,reliability: Arc::new(crate::config::ReliabilityConfig::default()),provider_runtime_options: provider::ProviderRuntimeOptions::default(),- workspace_dir: Arc::new(std::env::temp_dir()),+ workspace_dir: Arc::new(_linked.config().workspace_dir.clone()),message_timeout_secs: CHANNEL_MESSAGE_TIMEOUT_SECS,multimodal: crate::config::MultimodalConfig::default(),multimodal_files: crate::config::MultimodalFileConfig::default(),