Skip to content

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

fix(connect): handle missing channel in connect operation

Steven Enamakelcf01e78e3998
diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect.rs b/crates/openhuman-core/src/channels/controllers/ops/connect.rs
index c4452d9ee2..88ed0f3411 100644
--- a/crates/openhuman-core/src/channels/controllers/ops/connect.rs
+++ b/crates/openhuman-core/src/channels/controllers/ops/connect.rs
@@ -18,6 +18,14 @@ pub(crate) use shared::merge_listener_health;
pub use status::{channel_status, connected_channel_slugs, get_default_channel, set_default_channel};
pub use test_channel::test_channel;
+// `email_config_tests` below shares this module's scope via `use super::*;` —
+// the same way it did when this was one unsplit file — so bring in the
+// symbols it (and any sibling test module) reaches that way.
+#[cfg(test)]
+use email::build_email_config;
+#[cfg(test)]
+use serde_json::Value;
+
#[cfg(test)]
#[path = "connect_email_config_tests_tests.rs"]
mod email_config_tests;