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
feat(web_chat): emit turn events for chat start
Steven Enamakelb28f01765d31
diff --git a/crates/openhuman-core/src/web_chat/ops/start_chat.rs b/crates/openhuman-core/src/web_chat/ops/start_chat.rsindex 56f45dbcef..1169e967c5 100644--- a/crates/openhuman-core/src/web_chat/ops/start_chat.rs+++ b/crates/openhuman-core/src/web_chat/ops/start_chat.rs@@ -310,8 +310,7 @@ async fn start_chat_inner("[web-channel] turn finished request_id={id} ok={}",outcome.is_ok());- },- ));+ });match admission_rx.await.unwrap_or(Admission::Started) {Admission::Started => Ok(request_id),diff --git a/crates/openhuman-core/src/web_chat/turn_events.rs b/crates/openhuman-core/src/web_chat/turn_events.rsindex ecbf93f78d..18ea08deae 100644--- a/crates/openhuman-core/src/web_chat/turn_events.rs+++ b/crates/openhuman-core/src/web_chat/turn_events.rs@@ -477,8 +477,7 @@ impl EventSink<QueuedPayload> for WebEvents {request.thread_id);let shared = self.shared.clone();- tokio::spawn(crate::core::runtime::context::CoreContext::propagate(- async move {+ ctx.clone().spawn(async move {for item in items {shared.forget_queued(&item.request_id);if let Err(err) = super::ops::start_chat(