Skip to content

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

test(agent-harness): use process-default dispatch ctx in e2e cleanup

Steven Enamakel3e769a830fc1
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index df733acb82..e653f25394 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -1151,11 +1151,12 @@ async fn run_managed_capture_turn(
);
drop(events);
stack.shutdown_and_wait().await;
- // The bare test router dispatches RPC with DispatchCtx::unbound(). Its
- // cached web-chat agent outlives a router shutdown, so remove that session
- // from the same process-default slot before the fixture resets its files.
+ // The bare test router dispatches RPC under the process default context
+ // that `boot_stack` initialized. Its cached web-chat agent outlives a router
+ // shutdown, so remove that session from the same slot before the fixture
+ // resets its files.
openhuman_core::web_chat::invalidate_thread_sessions(
- &openhuman_core::core::runtime::DispatchCtx::unbound(),
+ &openhuman_core::core::runtime::DispatchCtx::process_default(),
"managed-capture-thread",
)
.await;