Skip to content

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

fix(web_chat): gate scoped_key re-export behind cfg(test)

Steven Enamakele698ca9dd4ca
diff --git a/crates/openhuman-core/src/web_chat/ops.rs b/crates/openhuman-core/src/web_chat/ops.rs
index b16e767683..5844b0559c 100644
--- a/crates/openhuman-core/src/web_chat/ops.rs
+++ b/crates/openhuman-core/src/web_chat/ops.rs
@@ -34,7 +34,9 @@ pub use state::parallel_in_flight_entries_for_test;
pub(crate) use state::IN_FLIGHT;
pub(super) use state::THREAD_SESSIONS;
pub use state::{cancel_should_target, in_flight_entries_for_test, invalidate_thread_sessions};
-pub(crate) use state::{event_session_id_for, key_for, scoped_key};
+pub(crate) use state::{event_session_id_for, key_for};
+#[cfg(test)]
+pub(crate) use state::scoped_key;
#[cfg(any(test, debug_assertions))]
pub use test_hooks::set_test_forced_run_chat_task_error;