Skip to content

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

feat(web_chat): emit turn events for streaming chat turns

Steven Enamakel2a7349381a0a
diff --git a/crates/openhuman-core/src/web_chat/turn_events.rs b/crates/openhuman-core/src/web_chat/turn_events.rs
index 6b75c8b1a5..37f6bc4587 100644
--- a/crates/openhuman-core/src/web_chat/turn_events.rs
+++ b/crates/openhuman-core/src/web_chat/turn_events.rs
@@ -481,10 +481,11 @@ impl EventSink<QueuedPayload> for WebEvents {
items.len(),
request.thread_id
);
+ let shared = self.shared.clone();
tokio::spawn(crate::core::runtime::context::CoreContext::propagate(
async move {
for item in items {
- self.shared_forget(&item);
+ shared.forget_queued(&item.request_id);
if let Err(err) = super::ops::start_chat(
&ctx,
&item.payload.client_id,