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 email channel config gracefully

Steven Enamakel3df7ecd1ca4f
diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/email.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/email.rs
index 05a7eb2262..05d909d611 100644
--- a/crates/openhuman-core/src/channels/controllers/ops/connect/email.rs
+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/email.rs
@@ -31,7 +31,7 @@ fn optional_cred_str(creds: &serde_json::Map<String, Value>, key: &str) -> Optio
/// Parse a `u16` port from a string/number credential field, falling back to
/// `default` when the field is absent or blank. Non-numeric values are a hard
/// error so a typo surfaces at connect time rather than silently reverting.
-fn parse_port_field(
+pub(crate) fn parse_port_field(
creds: &serde_json::Map<String, Value>,
key: &str,
default: u16,