Skip to content

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

refactor(web_chat): extract start chat handler into its own module

Steven Enamakel3e0a717056a2
diff --git a/crates/openhuman-core/src/web_chat/ops/start_chat.rs b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
index 835a1462c1..56f45dbcef 100644
--- a/crates/openhuman-core/src/web_chat/ops/start_chat.rs
+++ b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
@@ -287,8 +287,7 @@ async fn start_chat_inner(
}
let (runner, shared) = (rt.runner.clone(), rt.shared.clone());
let id = request_id.clone();
- tokio::spawn(crate::core::runtime::context::CoreContext::propagate(
- async move {
+ ctx.spawn(async move {
let outcome = runner.run(request).await;
// The first answer wins: a turn that started already told its
// submitter, and the refusals told theirs at the door.