Skip to content

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

test(channels): spawn the debounce harness loop through DispatchCtx

oxoxDev4a166611c48a
diff --git a/crates/openhuman-core/src/channels/tests/runtime_debounce.rs b/crates/openhuman-core/src/channels/tests/runtime_debounce.rs
index a661173a7f..6fc0794f88 100644
--- a/crates/openhuman-core/src/channels/tests/runtime_debounce.rs
+++ b/crates/openhuman-core/src/channels/tests/runtime_debounce.rs
@@ -120,7 +120,8 @@ struct Running {
impl Running {
fn start(ctx: Arc<ChannelRuntimeContext>, config: InboundDebounceConfig) -> Self {
let (tx, rx) = mpsc::channel(32);
- let task = tokio::spawn(run_message_dispatch_loop(rx, ctx, 4, config));
+ let task = crate::core::runtime::DispatchCtx::ambient()
+ .spawn(run_message_dispatch_loop(rx, ctx, 4, config));
Self {
tx,
task,