Skip to content

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

refactor(relay): extract relay ops into dedicated module

Steven Enamakelee91ab05cb18
diff --git a/crates/openhuman-core/src/channels/providers/relay/ops.rs b/crates/openhuman-core/src/channels/providers/relay/ops.rs
index a1588fbc3f..98dee66cac 100644
--- a/crates/openhuman-core/src/channels/providers/relay/ops.rs
+++ b/crates/openhuman-core/src/channels/providers/relay/ops.rs
@@ -30,7 +30,7 @@ pub async fn channel_relay_inbound(
params.validate()?;
// In SaaS a relayed message must run as its user: with no tenant scope
// there is no workspace, stream or config it may touch.
- let tenant = crate::core::runtime::current_tenant().map_err(|error| error.to_string())?;
+ let tenant = ctx.tenant().map_err(|error| error.to_string())?;
let config = ctx.load_config().await?;
let identity = crate::modules::channel_controller::prepare_identity(
&crate::modules::client(config.clone()),