Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(web_chat): add progress bridge tests

Steven Enamakel292790396907
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs b/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
index 3749c709ac..919f352649 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
@@ -108,7 +108,6 @@ async fn tool_call_completed_forwards_real_output_on_tool_result() {
let (tx, rx) = tokio::sync::mpsc::channel(16);
let mut bus = super::super::event_bus::subscribe_web_channel_events();
spawn_progress_bridge(
-&crate::core::runtime::DispatchCtx::ambient(),
rx,
"client-out".into(),
"thread-out".into(),
@@ -221,7 +220,6 @@ fn spawn_test_bridge(
// a test-only allocation; the OS reclaims it on process exit.
std::mem::forget(dir);
spawn_progress_bridge(
-&crate::core::runtime::DispatchCtx::ambient(),
rx,
"client-hb-4270".to_string(),
thread_id.to_string(),
@@ -417,7 +415,6 @@ async fn wait_drained_returns_after_queued_events_are_forwarded() {
let (tx, rx) = tokio::sync::mpsc::channel(16);
let mut bus = super::super::event_bus::subscribe_web_channel_events();
let handle = spawn_progress_bridge(
-&crate::core::runtime::DispatchCtx::ambient(),
rx,
"client-drain".into(),
"thread-drain".into(),
@@ -475,7 +472,6 @@ async fn wait_drained_is_bounded_when_the_turn_never_completes() {
as std::sync::Arc<dyn tinyagents_session::port::TurnStates>;
let (tx, rx) = tokio::sync::mpsc::channel::<AgentProgress>(16);
let handle = spawn_progress_bridge(
-&crate::core::runtime::DispatchCtx::ambient(),
rx,
"client-drain-timeout".into(),
"thread-drain-timeout".into(),
@@ -501,7 +497,6 @@ async fn short_narration_is_flushed_on_the_rounds_first_tool_call() {
let (tx, rx) = tokio::sync::mpsc::channel(16);
let mut bus = super::super::event_bus::subscribe_web_channel_events();
let _handle = spawn_progress_bridge(
-&crate::core::runtime::DispatchCtx::ambient(),
rx,
"client-short".into(),
"thread-short-narration".into(),
@@ -695,7 +690,6 @@ async fn hold_text_stream_suppresses_text_delta_but_keeps_interim() {
let (tx, rx) = tokio::sync::mpsc::channel(16);
let mut bus = super::super::event_bus::subscribe_web_channel_events();
spawn_progress_bridge(
-&crate::core::runtime::DispatchCtx::ambient(),
rx,
"client-hold".into(),
"thread-hold".into(),