Skip to content

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

refactor(rpc): route saas runtime checks through core_host

Steven Enamakelc0643e95c0a5
diff --git a/crates/openhuman-rpc/src/server/http/events.rs b/crates/openhuman-rpc/src/server/http/events.rs
index 180fed9c28..191837ad45 100644
--- a/crates/openhuman-rpc/src/server/http/events.rs
+++ b/crates/openhuman-rpc/src/server/http/events.rs
@@ -54,8 +54,8 @@ pub(super) async fn events_handler(
// SaaS: the stream belongs to the user the gateway scoped this request to,
// and carries only that user's events. No user scope, or a browser bind
// token instead of the gateway's bearer, is refused outright.
- let saas_agent = if openhuman_core::core::runtime::is_saas() {
- let agent = openhuman_core::core::runtime::CoreContext::current()
+ let saas_agent = if crate::core_host::core::runtime::is_saas() {
+ let agent = crate::core_host::core::runtime::CoreContext::current()
.and_then(|ctx| ctx.session_agent().map(str::to_owned));
match agent {
Some(agent) if bearer_ok => Some(agent),