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(web_chat): cover the tool_progress socket event through the bridge
killbill5822407cf2a0
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs b/crates/openhuman-core/src/web_chat/progress_bridge_tests.rsindex 9ae74e4e4b..17c1c83922 100644--- a/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs+++ b/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs@@ -740,3 +740,6 @@ async fn hold_text_stream_suppresses_text_delta_but_keeps_interim() {Some("Let me check the release notes for you first."));}++#[path = "progress_bridge_tool_progress_tests.rs"]+mod tool_progress_tests;diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_tool_progress_tests.rs b/crates/openhuman-core/src/web_chat/progress_bridge_tool_progress_tests.rsnew file mode 100644index 0000000000..d2fad1db3d--- /dev/null+++ b/crates/openhuman-core/src/web_chat/progress_bridge_tool_progress_tests.rs@@ -0,0 +1,27 @@+use super::*;++/// A running tool's status line reaches the socket as `tool_progress`, tied to+/// the open call by its id, so the client can show the call is still alive.+#[tokio::test]+async fn forwards_tool_progress_for_the_running_call() {+ let mut events = super::super::super::event_bus::subscribe_web_channel_events();+ let thread_id = "thread-tool-progress";+ let tx = spawn_test_bridge(thread_id, "req-tool-progress");++ tx.send(AgentProgress::ToolCallProgress {+ call_id: "call-1".into(),+ message: "running 15s · 2.0 KB output".into(),+ })+ .await+ .unwrap();++ let event = recv_for_thread(&mut events, thread_id).await;+ assert_eq!(event.event, "tool_progress");+ assert_eq!(event.request_id, "req-tool-progress");+ assert_eq!(event.tool_call_id.as_deref(), Some("call-1"));+ assert_eq!(+ event.message.as_deref(),+ Some("running 15s · 2.0 KB output")+ );+ drop(tx);+}