Skip to content

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

chore(channels): gate test_support behind test only

Steven Enamakel792ca96ebebf
diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rs
index 749faf9e10..faf154447d 100644
--- a/crates/openhuman-core/src/channels/mod.rs
+++ b/crates/openhuman-core/src/channels/mod.rs
@@ -45,7 +45,7 @@ pub(crate) use system_prompt::ChannelSystemPrompt;
#[cfg(all(feature = "channels", test))]
mod tests;
-#[cfg(all(feature = "channels", any(test, debug_assertions)))]
+#[cfg(all(feature = "channels", test))]
pub use runtime::test_support;
#[cfg(feature = "channels")]
diff --git a/crates/openhuman-core/src/channels/runtime/mod.rs b/crates/openhuman-core/src/channels/runtime/mod.rs
index 0bd7807fe3..25bc6501ca 100644
--- a/crates/openhuman-core/src/channels/runtime/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/mod.rs
@@ -18,7 +18,7 @@ pub(crate) use dispatch::process_channel_message;
pub(crate) use dispatch::{process_channel_runtime_message, RuntimeChannelMessage};
pub(crate) use startup::{build_channel_turn_parts, runtime_context, PromptToolDescs};
-#[cfg(any(test, debug_assertions))]
+#[cfg(test)]
pub mod test_support;
// Re-exported for `channels::tests` only; omit in normal lib builds to avoid unused-import warnings.