The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(channels): migrate relay runtime and CliChannel to tinychannels-runtime
Steven Enamakel65f7420262a1
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex c852d2f18d..7e54f859a1 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -308,6 +308,8 @@ tinymcp-bus = { path = "../../vendor/tinymcp/crates/tinymcp-bus", features = ["s# vocabulary is always-on kernel surface. It costs serde/schemars and nothing# this build did not already have.tinychannels-bus = { version = "0.1", path = "../../vendor/tinychannels/crates/tinychannels-bus" }+# `CliChannel` (always compiled) and the channel runtime helpers.+tinychannels-runtime = { version = "0.1", path = "../../vendor/tinychannels/crates/tinychannels-runtime" }# The provider stack that IMPLEMENTS that vocabulary — Telegram, Discord,# Slack, IMAP, WhatsApp, the relay transport loop. Optional: it owns the# `reqwest` / `rusqlite` / `rustls` / `tokio-tungstenite` cohort, which adiff --git a/crates/openhuman-core/src/channels/cli.rs b/crates/openhuman-core/src/channels/cli.rsdeleted file mode 100644index 9a547db957..0000000000--- a/crates/openhuman-core/src/channels/cli.rs+++ /dev/null@@ -1,69 +0,0 @@-use super::traits::{Channel, ChannelMessage, SendMessage};-use async_trait::async_trait;-use tokio::io::{self, AsyncBufReadExt, BufReader};-use uuid::Uuid;--/// Console channel — stdin/stdout, not used in the web UI, zero deps-pub struct CliChannel;--impl Default for CliChannel {- fn default() -> Self {- Self::new()- }-}--impl CliChannel {- pub fn new() -> Self {- Self- }-}--#[async_trait]-impl Channel for CliChannel {- fn name(&self) -> &str {- "cli"- }-- async fn send(&self, message: &SendMessage) -> anyhow::Result<()> {- println!("{}", message.content);- Ok(())- }-- async fn listen(&self, tx: tokio::sync::mpsc::Sender<ChannelMessage>) -> anyhow::Result<()> {- let stdin = io::stdin();- let reader = BufReader::new(stdin);- let mut lines = reader.lines();-- while let Ok(Some(line)) = lines.next_line().await {- let line = line.trim().to_string();- if line.is_empty() {- continue;- }- if line == "/quit" || line == "/exit" {- break;- }-- let msg = ChannelMessage {- id: Uuid::new_v4().to_string(),- sender: "user".to_string(),- reply_target: "user".to_string(),- content: line,- channel: "cli".to_string(),- timestamp: std::time::SystemTime::now()- .duration_since(std::time::UNIX_EPOCH)- .unwrap_or_default()- .as_secs(),- thread_ts: None,- };-- if tx.send(msg).await.is_err() {- break;- }- }- Ok(())- }-}--#[cfg(test)]-#[path = "cli_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/channels/cli_tests.rs b/crates/openhuman-core/src/channels/cli_tests.rsdeleted file mode 100644index a34dd13d44..0000000000--- a/crates/openhuman-core/src/channels/cli_tests.rs+++ /dev/null@@ -1,77 +0,0 @@-use super::*;--#[test]-fn cli_channel_name() {- assert_eq!(CliChannel::new().name(), "cli");-}--#[tokio::test]-async fn cli_channel_send_does_not_panic() {- let ch = CliChannel::new();- let result = ch- .send(&SendMessage {- content: "hello".into(),- recipient: "user".into(),- subject: None,- thread_ts: None,- idempotency_key: None,- })- .await;- assert!(result.is_ok());-}--#[tokio::test]-async fn cli_channel_send_empty_message() {- let ch = CliChannel::new();- let result = ch- .send(&SendMessage {- content: String::new(),- recipient: String::new(),- subject: None,- thread_ts: None,- idempotency_key: None,- })- .await;- assert!(result.is_ok());-}--#[tokio::test]-async fn cli_channel_health_check() {- let ch = CliChannel::new();- assert!(ch.health_check().await);-}--#[test]-fn channel_message_struct() {- let msg = ChannelMessage {- id: "test-id".into(),- sender: "user".into(),- reply_target: "user".into(),- content: "hello".into(),- channel: "cli".into(),- timestamp: 1_234_567_890,- thread_ts: None,- };- assert_eq!(msg.id, "test-id");- assert_eq!(msg.sender, "user");- assert_eq!(msg.reply_target, "user");- assert_eq!(msg.content, "hello");- assert_eq!(msg.channel, "cli");- assert_eq!(msg.timestamp, 1_234_567_890);-}--#[test]-fn channel_message_clone() {- let msg = ChannelMessage {- id: "id".into(),- sender: "s".into(),- reply_target: "s".into(),- content: "c".into(),- channel: "ch".into(),- timestamp: 0,- thread_ts: None,- };- let cloned = msg.clone();- assert_eq!(cloned.id, msg.id);- assert_eq!(cloned.content, msg.content);-}diff --git a/crates/openhuman-core/src/channels/controllers/backend.rs b/crates/openhuman-core/src/channels/controllers/backend.rsindex 2022c4fc65..898c0b91a6 100644--- a/crates/openhuman-core/src/channels/controllers/backend.rs+++ b/crates/openhuman-core/src/channels/controllers/backend.rs@@ -255,12 +255,12 @@ impl ChannelBackend for OpenHumanChannelBackend {channels_config: &ChannelsConfig,intent: ChannelOutboundIntent,) -> anyhow::Result<ChannelSendMessageResult> {- if crate::channels::relay_runtime::relay_runtime_fronts_channel(+ if tinychannels::relay::relay_runtime_fronts_channel(channels_config,&intent.channel_id,) {if let Some(result) =- crate::channels::relay_runtime::send_outbound_intent(&intent).await?+ tinychannels::relay::send_outbound_intent(&intent).await?{return Ok(result);}diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect_email_config_tests_tests.rs b/crates/openhuman-core/src/channels/controllers/ops/connect_email_config_tests_tests.rsdeleted file mode 100644index 3bb8a5921f..0000000000--- a/crates/openhuman-core/src/channels/controllers/ops/connect_email_config_tests_tests.rs+++ /dev/null@@ -1,114 +0,0 @@-use super::*;-use serde_json::json;--fn creds(v: Value) -> serde_json::Map<String, Value> {- v.as_object().cloned().unwrap()-}--#[test]-fn build_email_config_applies_defaults() {- let c = creds(json!({- "imap_host": "imap.fastmail.com",- "smtp_host": "smtp.fastmail.com",- "username": "[email protected]",- "password": "app-pass",- }));- let cfg = build_email_config(&c, None).expect("should build");- assert_eq!(cfg.imap_port, 993);- assert_eq!(cfg.smtp_port, 465);- assert!(cfg.smtp_tls);- assert_eq!(cfg.imap_folder, "INBOX");- // from_address defaults to the username when omitted.- assert_eq!(cfg.from_address, "[email protected]");- // Absent allowlist defaults to allow-any so a fresh mailbox receives.- assert_eq!(cfg.allowed_senders, vec!["*".to_string()]);- assert_eq!(cfg.idle_timeout_secs, 1740);-}--#[test]-fn build_email_config_honors_explicit_values() {- let c = creds(json!({- "imap_host": "mail.self.host",- "imap_port": "1993",- "imap_folder": "Archive",- "smtp_host": "mail.self.host",- "smtp_port": "2465",- "smtp_tls": "false",- "username": "[email protected]",- "password": "secret",- "from_address": "Bob <[email protected]>",- "allowed_senders": "@team.com, [email protected] , @team.com",- }));- let cfg = build_email_config(&c, None).expect("should build");- assert_eq!(cfg.imap_port, 1993);- assert_eq!(cfg.smtp_port, 2465);- assert!(!cfg.smtp_tls);- assert_eq!(cfg.imap_folder, "Archive");- assert_eq!(cfg.from_address, "Bob <[email protected]>");- // '@'-domain syntax preserved; duplicate collapsed case-insensitively.- assert_eq!(- cfg.allowed_senders,- vec!["@team.com".to_string(), "[email protected]".to_string()]- );-}--#[test]-fn build_email_config_rejects_missing_required() {- for missing in ["imap_host", "smtp_host", "username", "password"] {- let mut obj = json!({- "imap_host": "h",- "smtp_host": "h",- "username": "u",- "password": "p",- });- obj.as_object_mut().unwrap().remove(missing);- let err =- build_email_config(&creds(obj), None).expect_err("must reject missing required field");- assert!(err.contains(missing), "error should name {missing}: {err}");- }-}--#[test]-fn build_email_config_preserves_existing_idle_timeout() {- let existing = EmailConfig {- idle_timeout_secs: 600,- ..EmailConfig::default()- };- let c = creds(json!({- "imap_host": "h", "smtp_host": "h", "username": "u", "password": "p",- }));- let cfg = build_email_config(&c, Some(&existing)).expect("should build");- assert_eq!(cfg.idle_timeout_secs, 600);-}--#[test]-fn parse_port_field_variants() {- let c = creds(json!({- "p_str": "8143", "p_blank": " ", "p_num": 143, "p_bad": "abc",- "p_zero_str": "0", "p_zero_num": 0- }));- assert_eq!(parse_port_field(&c, "p_str", 993).unwrap(), 8143);- assert_eq!(parse_port_field(&c, "p_blank", 993).unwrap(), 993);- assert_eq!(parse_port_field(&c, "p_num", 993).unwrap(), 143);- assert_eq!(parse_port_field(&c, "absent", 465).unwrap(), 465);- assert!(parse_port_field(&c, "p_bad", 993).is_err());- // Port 0 is the OS "any" sentinel, never valid for a mailbox.- assert!(parse_port_field(&c, "p_zero_str", 993).is_err());- assert!(parse_port_field(&c, "p_zero_num", 993).is_err());-}--#[test]-fn parse_email_senders_defaults_and_dedup() {- // Absent → allow any.- assert_eq!(parse_email_senders(None), vec!["*".to_string()]);- // Blank string → allow any (never accidental deny-all).- assert_eq!(- parse_email_senders(Some(&json!(" "))),- vec!["*".to_string()]- );- // Array form joins, preserves '@', dedups.- assert_eq!(- parse_email_senders(Some(&json!(["@x.com", "[email protected]", "@X.COM"]))),- vec!["@x.com".to_string(), "[email protected]".to_string()]- );-}diff --git a/crates/openhuman-core/src/channels/controllers/ops/yuanbao.rs b/crates/openhuman-core/src/channels/controllers/ops/yuanbao.rsdeleted file mode 100644index 8b79b7c5eb..0000000000--- a/crates/openhuman-core/src/channels/controllers/ops/yuanbao.rs+++ /dev/null@@ -1,89 +0,0 @@-//! Yuanbao-specific credential helpers.--use serde_json::Value;--use crate::channels::providers::yuanbao::sign::SignManager;-use crate::channels::providers::yuanbao::YuanbaoConfig;--/// Read a required non-empty Yuanbao credential field from the connect-channel-/// payload. Returns the trimmed value or an error naming the missing field.-pub(super) fn require_yuanbao_field(- creds_map: &serde_json::Map<String, Value>,- key: &str,-) -> Result<String, String> {- creds_map- .get(key)- .and_then(|v| v.as_str())- .map(str::trim)- .filter(|s| !s.is_empty())- .map(|s| s.to_string())- .ok_or_else(|| format!("missing required {key}"))-}--/// Build the **effective** Yuanbao config that will be used for both-/// preflight verification and persistence.-///-/// Starts from the existing TOML (so manually-installed deployments keep-/// any custom routes), overlays the client-supplied endpoint overrides-/// (`env` / `api_domain` / `ws_domain` / `route_env`), then calls-/// `apply_env_defaults` so the verifier hits the correct cluster — e.g. a-/// user submitting `env = "pre"` is verified against the pre-release-/// sign-token endpoint instead of the default prod one.-///-/// `app_secret` is intentionally left empty: the runtime loads it from-/// the encrypted credentials store at startup, never from `config.toml`.-pub(super) fn build_effective_yuanbao_config(- base: YuanbaoConfig,- creds_map: &serde_json::Map<String, Value>,- app_key: String,-) -> YuanbaoConfig {- let opt_string = |key: &str| -> Option<String> {- creds_map- .get(key)- .and_then(|v| v.as_str())- .map(str::trim)- .filter(|s| !s.is_empty())- .map(|s| s.to_string())- };-- let mut cfg = base;- cfg.app_key = app_key;- cfg.app_secret = String::new();- if let Some(env) = opt_string("env") {- cfg.env = env;- }- if let Some(api_domain) = opt_string("api_domain") {- cfg.api_domain = api_domain;- }- if let Some(ws_domain) = opt_string("ws_domain") {- cfg.ws_domain = ws_domain;- }- if let Some(route_env) = opt_string("route_env") {- cfg.route_env = route_env;- }- cfg.apply_env_defaults();- cfg-}--/// Verify Yuanbao credentials against the `sign-token` endpoint before any-/// persistence so invalid `app_key` / `app_secret` surface the upstream API-/// error to the user instead of silently succeeding.-///-/// Takes the **effective** `YuanbaoConfig` already built from the client's-/// overrides + TOML defaults, so the verifier targets whatever cluster the-/// runtime will use after restart.-pub(super) async fn verify_yuanbao_credentials(- yb_cfg: &YuanbaoConfig,- app_secret: &str,-) -> Result<(), String> {- SignManager::new(reqwest::Client::new())- .get_token(- &yb_cfg.app_key,- app_secret,- &yb_cfg.api_domain,- &yb_cfg.route_env,- )- .await- .map_err(|e| format!("yuanbao credential verification failed: {e}"))?;- Ok(())-}diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rsindex 7c970a3f62..81fb834127 100644--- a/crates/openhuman-core/src/channels/mod.rs+++ b/crates/openhuman-core/src/channels/mod.rs@@ -7,14 +7,15 @@//! * `traits` — a one-line re-export of the `tinychannels` `Channel` ///! `SendMessage` traits, named by the always-on agent-harness interactive//! loop (`agent::session_host::runtime::run_interactive`).-//! * `cli` — `CliChannel`, the dependency-free local stdin/stdout REPL the same-//! interactive loop drives in every build.+//! * `CliChannel` — the local stdin/stdout REPL the same interactive loop+//! drives in every build, re-exported from the lightweight+//! `tinychannels-runtime` crate.//! * `contract_schema` — the `tinychannels-bus` controller-schema conversion,//! shared with `openhuman-tinyhumans`, which serves the managed-bot link//! controllers (`channels.telegram_login_*`, `channels.discord_link_*`).//!//! Everything else (`providers`, `host`, `controllers`, `runtime`, `bus`,-//! `proactive`, `commands`, `context`, `routes`, `relay_runtime`,+//! `proactive`, `commands`, `context`, `routes`,//! the provider re-exports,//! `doctor_channels`, `start_channels`, the `build_system_prompt` re-export and//! the `test_support` re-export) is `#[cfg(feature = "channels")]`.@@ -26,11 +27,10 @@//! AGENTS.md "channels gate".// Always-compiled carve-outs (see module docs).-pub mod cli;pub mod contract_schema;pub mod traits;-pub use cli::CliChannel;+pub use tinychannels_runtime::CliChannel;pub use traits::{Channel, ChannelSendExt, SendMessage};#[cfg(feature = "channels")]@@ -48,8 +48,6 @@ pub mod proactive;#[cfg(feature = "channels")]pub mod providers;#[cfg(feature = "channels")]-pub(crate) mod relay_runtime;-#[cfg(feature = "channels")]mod routes;#[cfg(feature = "channels")]mod runtime;diff --git a/crates/openhuman-core/src/channels/relay_runtime.rs b/crates/openhuman-core/src/channels/relay_runtime.rsdeleted file mode 100644index 685fc965c6..0000000000--- a/crates/openhuman-core/src/channels/relay_runtime.rs+++ /dev/null@@ -1,89 +0,0 @@-//! Process-local relay runtime access for channel controller sends.--use crate::config::ChannelsConfig;-use anyhow::Result;-use serde_json::Value;-use std::sync::{Arc, OnceLock, RwLock};-use tinychannels::controllers::ChannelSendMessageResult;-use tinychannels::{relay::RelayTransport, ChannelOutboundIntent};--static RELAY_TRANSPORT: OnceLock<RwLock<Option<Arc<RelayTransport>>>> = OnceLock::new();--fn relay_transport_slot() -> &'static RwLock<Option<Arc<RelayTransport>>> {- RELAY_TRANSPORT.get_or_init(|| RwLock::new(None))-}--pub(crate) fn register_relay_transport(transport: Arc<RelayTransport>) {- if let Ok(mut slot) = relay_transport_slot().write() {- *slot = Some(transport);- }-}--pub(crate) fn unregister_relay_transport(transport: &Arc<RelayTransport>) {- let mut slot = relay_transport_slot()- .write()- .unwrap_or_else(|error| error.into_inner());- if slot- .as_ref()- .is_some_and(|current| Arc::ptr_eq(current, transport))- {- *slot = None;- tracing::debug!("[channels][relay] unregistered stopped runtime transport");- }-}--fn current_relay_transport() -> Option<Arc<RelayTransport>> {- relay_transport_slot()- .read()- .ok()- .and_then(|slot| slot.clone())-}--pub(crate) fn relay_runtime_fronts_channel(config: &ChannelsConfig, channel: &str) -> bool {- config- .relay- .as_ref()- .filter(|relay| relay.is_listener_configured())- .is_some_and(|relay| {- relay- .identities- .iter()- .any(|identity| identity.platform == channel)- })-}--pub(crate) async fn send_outbound_intent(- intent: &ChannelOutboundIntent,-) -> Result<Option<ChannelSendMessageResult>> {- let Some(transport) = current_relay_transport() else {- return Ok(None);- };- let action = tinychannels::relay::relay_send_action_from_outbound_intent(intent);- let result = transport- .send_outbound(action, Some(&intent.channel_id))- .await- .map_err(|error| anyhow::anyhow!("relay outbound failed: {error}"))?;- Ok(Some(relay_send_message_result(result)?))-}--fn relay_send_message_result(result: Value) -> Result<ChannelSendMessageResult> {- if result.get("success").and_then(Value::as_bool) == Some(false) {- let error = result- .get("error")- .and_then(Value::as_str)- .unwrap_or("relay outbound failed");- return Err(anyhow::anyhow!("relay outbound failed: {error}"));- }- Ok(ChannelSendMessageResult {- message_id: result- .get("message_id")- .and_then(Value::as_str)- .map(str::to_string),- raw: Some(result),- ..Default::default()- })-}--#[cfg(test)]-#[path = "relay_runtime_tests.rs"]-mod tests;diff --git a/crates/openhuman-core/src/channels/relay_runtime_tests.rs b/crates/openhuman-core/src/channels/relay_runtime_tests.rsdeleted file mode 100644index a51e996038..0000000000--- a/crates/openhuman-core/src/channels/relay_runtime_tests.rs+++ /dev/null@@ -1,68 +0,0 @@-use super::*;-use tinychannels::config::{RelayRuntimeConfig, RelayRuntimeIdentityConfig};--#[test]-fn relay_runtime_fronts_only_configured_identity_platforms() {- let mut config = ChannelsConfig::default();- assert!(!relay_runtime_fronts_channel(&config, "discord"));-- config.relay = Some(RelayRuntimeConfig {- url: "wss://relay.example/relay".to_string(),- identities: vec![RelayRuntimeIdentityConfig {- platform: "discord".to_string(),- bot_id: "app-1".to_string(),- }],- ..Default::default()- });-- assert!(relay_runtime_fronts_channel(&config, "discord"));- assert!(!relay_runtime_fronts_channel(&config, "telegram"));-}--#[test]-fn relay_result_maps_message_id_and_failures() {- let result =- relay_send_message_result(serde_json::json!({"success": true, "message_id": "m1"}))- .expect("successful relay result");- assert_eq!(result.message_id.as_deref(), Some("m1"));- assert_eq!(- result.raw,- Some(serde_json::json!({"success": true, "message_id": "m1"}))- );-- let err = relay_send_message_result(serde_json::json!({"success": false, "error": "denied"}))- .unwrap_err();- assert_eq!(err.to_string(), "relay outbound failed: denied");-}--#[tokio::test]-async fn relay_teardown_removes_only_its_own_transport() {- use tinychannels::relay::*;- struct NoNetwork;- #[async_trait::async_trait]- impl RelayFrameIo for NoNetwork {- async fn send(&self, _: GatewayToConnectorFrame) -> Result<(), RelayTransportError> {- panic!("registry lifecycle must not send network traffic")- }- async fn recv(&self) -> Result<Option<ConnectorToGatewayFrame>, RelayTransportError> {- panic!("registry lifecycle must not receive network traffic")- }- }- let make_transport = || {- Arc::new(RelayTransport::new(- vec![],- Arc::new(NoNetwork),- RelayTransportTimeouts::default(),- ))- };- let old = make_transport();- let newer = make_transport();- register_relay_transport(old.clone());- register_relay_transport(newer.clone());- unregister_relay_transport(&old);- assert!(Arc::ptr_eq(¤t_relay_transport().unwrap(), &newer));- unregister_relay_transport(&newer);- assert!(current_relay_transport().is_none());- unregister_relay_transport(&newer);- assert!(current_relay_transport().is_none());-}diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/dispatch_loop.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/dispatch_loop.rsdeleted file mode 100644index aa8b953d85..0000000000--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/dispatch_loop.rs+++ /dev/null@@ -1,39 +0,0 @@-//! Bounded-concurrency worker loop that feeds inbound messages into-//! [`super::turn::process_channel_runtime_message`].--use super::message::RuntimeChannelMessage;-use super::turn::process_channel_runtime_message;-use crate::channels::context::ChannelRuntimeContext;-use std::sync::Arc;--use super::super::helpers::log_worker_join_result;--pub(crate) async fn run_message_dispatch_loop(- mut rx: tokio::sync::mpsc::Receiver<RuntimeChannelMessage>,- ctx: Arc<ChannelRuntimeContext>,- max_in_flight_messages: usize,-) {- let semaphore = Arc::new(tokio::sync::Semaphore::new(max_in_flight_messages));- let mut workers = tokio::task::JoinSet::new();-- while let Some(msg) = rx.recv().await {- let permit = match Arc::clone(&semaphore).acquire_owned().await {- Ok(permit) => permit,- Err(_) => break,- };-- let worker_ctx = Arc::clone(&ctx);- workers.spawn(async move {- let _permit = permit;- process_channel_runtime_message(worker_ctx, msg).await;- });-- while let Some(result) = workers.try_join_next() {- log_worker_join_result(result);- }- }-- while let Some(result) = workers.join_next().await {- log_worker_join_result(result);- }-}diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/message.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/message.rsdeleted file mode 100644index 862f927f60..0000000000--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/message.rs+++ /dev/null@@ -1,32 +0,0 @@-//! The runtime's internal message envelope, wrapping a legacy-//! [`traits::ChannelMessage`] with the original TinyChannels inbound-//! envelope (when the message arrived via the relay transport).--use crate::channels::traits;--#[derive(Debug, Clone)]-pub(crate) struct RuntimeChannelMessage {- pub(crate) message: traits::ChannelMessage,- pub(crate) inbound_envelope: Option<tinychannels::ChannelInboundEnvelope>,-}--impl RuntimeChannelMessage {- pub(crate) fn with_inbound_envelope(- message: traits::ChannelMessage,- inbound_envelope: tinychannels::ChannelInboundEnvelope,- ) -> Self {- Self {- message,- inbound_envelope: Some(inbound_envelope),- }- }-}--impl From<traits::ChannelMessage> for RuntimeChannelMessage {- fn from(message: traits::ChannelMessage) -> Self {- Self {- message,- inbound_envelope: None,- }- }-}diff --git a/crates/openhuman-core/src/channels/runtime/startup/relay.rs b/crates/openhuman-core/src/channels/runtime/startup/relay.rsindex 63b00136a9..40d7a5bb2d 100644--- a/crates/openhuman-core/src/channels/runtime/startup/relay.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/relay.rs@@ -43,7 +43,7 @@ pub(super) struct RelayRuntimeHandle {impl Drop for RelayRuntimeHandle {fn drop(&mut self) {- crate::channels::relay_runtime::unregister_relay_transport(&self._transport);+ tinychannels::relay::unregister_relay_transport(&self._transport);self._reconnect.abort();}}@@ -74,7 +74,7 @@ pub(super) async fn start_relay_runtime(max_message_length = descriptor.max_message_length,"[channels][relay] connected relay runtime");- crate::channels::relay_runtime::register_relay_transport(transport.clone());+ tinychannels::relay::register_relay_transport(transport.clone());let dialer = Arc::new(tinychannels::relay::WebSocketRelayDialer::new(websocket_config,