Skip to content

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

fix(channels): remove stale dispatch reexports

Steven Enamakela34d6064b191
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
index 801bcfd6eb..ef475d3eda 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
@@ -19,10 +19,12 @@ mod processor;
mod routing;
pub(crate) use processor::{
- process_channel_message, process_channel_runtime_message, run_message_dispatch_loop,
- RuntimeChannelMessage,
+ process_channel_runtime_message, run_message_dispatch_loop, RuntimeChannelMessage,
};
+#[cfg(test)]
+pub(crate) use processor::process_channel_message;
+
// `channel_has_approval_surface` stays pub(crate) on processor; re-export so
// the inline test module can reach it via `super::channel_has_approval_surface`.
#[cfg(test)]
@@ -38,9 +40,6 @@ use helpers::select_acknowledgment_reaction;
#[cfg(test)]
use routing::{build_visible_tool_set, AgentScoping};
-#[cfg(any(test, debug_assertions))]
-use tinychannels_bus as traits;
-
#[cfg(any(test, debug_assertions))]
#[path = "mod_test_support_tests.rs"]
pub mod test_support;
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
index 38056f34f4..6c9b6712d5 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
@@ -68,8 +68,10 @@ use admit::admit_runtime_message;
pub(crate) use admit::AdmittedInbound;
#[cfg(test)]
pub(crate) use approval::channel_has_approval_surface;
+#[cfg(test)]
+pub(crate) use turn::process_channel_message;
+pub(crate) use turn::process_channel_runtime_message;
use turn::run_admitted_turn;
-pub(crate) use turn::{process_channel_message, process_channel_runtime_message};
/// Run every inbound message through the agent pipeline until `rx` closes.
///