Skip to content

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

fix(web_chat): check live turns in the agent context's turn tables (#7032)

oxoxDev3ce4af23e917
diff --git a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs b/crates/openhuman-core/src/web_chat/ops/channel_ops.rs
index d609ec41c0..c2fc900dd7 100644
--- a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs
+++ b/crates/openhuman-core/src/web_chat/ops/channel_ops.rs
@@ -185,10 +185,10 @@ async fn cancel_chat_inner(
/// Is a primary or parallel turn still running on `thread_id`?
async fn thread_has_live_turn(thread_id: &str, map_key: &str) -> bool {
- if IN_FLIGHT.lock().await.contains_key(map_key) {
+ if super::state::in_flight().lock().await.contains_key(map_key) {
return true;
}
- super::state::PARALLEL_IN_FLIGHT
+ super::state::parallel_in_flight()
.lock()
.await
.values()