Skip to content

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

feat(security): add device bus for security device events

Steven Enamakel8cd3aa49ee91
diff --git a/crates/openhuman-core/src/security/devices/bus.rs b/crates/openhuman-core/src/security/devices/bus.rs
index 0283cd2ace..fe5a8dddad 100644
--- a/crates/openhuman-core/src/security/devices/bus.rs
+++ b/crates/openhuman-core/src/security/devices/bus.rs
@@ -407,9 +407,7 @@ async fn handle_tunnel_frame(ctx: &DispatchCtx, channel_id: &str, payload_b64: &
Ok(device) => {
super::owner::remember(
channel_id,
- crate::core::runtime::current_tenant()
- .ok()
- .and_then(|tenant| tenant.agent),
+ ctx.tenant().ok().and_then(|tenant| tenant.agent),
);
log::info!(
"[devices/bus] device persisted channel_id={} label={}",