Skip to content

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

test(web_chat): expose parallel turn tracking helper for tests

Steven Enamakelf51caeebc07d
diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rs
index d1e440eabe..19fa75b8e0 100644
--- a/crates/openhuman-core/src/web_chat/mod.rs
+++ b/crates/openhuman-core/src/web_chat/mod.rs
@@ -80,6 +80,8 @@ pub use event_bus::fresh_approval_surface_subscription;
// Public API — operations
#[cfg(test)]
pub use ops::drain_queued_turns_for_test;
+#[cfg(test)]
+pub(crate) use ops::track_parallel_turn_for_test;
pub(crate) use ops::invalidate_thread_sessions_for_tenant;
#[cfg(test)]
pub(crate) use ops::lock_thread_sessions_for_test;
diff --git a/crates/openhuman-core/src/web_chat/ops.rs b/crates/openhuman-core/src/web_chat/ops.rs
index 1c1557ed0b..39ac645cbd 100644
--- a/crates/openhuman-core/src/web_chat/ops.rs
+++ b/crates/openhuman-core/src/web_chat/ops.rs
@@ -30,6 +30,8 @@ pub use system_turn::{run_system_turn_on_thread, SESSION_CHECKOUT_FAILURE, SYSTE
#[cfg(test)]
pub use state::drain_queued_turns_for_test;
#[cfg(test)]
+pub(crate) use state::track_parallel_turn_for_test;
+#[cfg(test)]
pub(crate) use state::in_flight;
pub(crate) use state::invalidate_thread_sessions_for_tenant;
#[cfg(test)]