Skip to content

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

Merge upstream/main into saas-profiles

Steven Enamakel72a536067897
diff --cc crates/openhuman-rpc/src/server/saas_gateway.rs
index 973a2924d2,bb82f56d54..f6d83d1eb5
--- a/crates/openhuman-rpc/src/server/saas_gateway.rs
+++ b/crates/openhuman-rpc/src/server/saas_gateway.rs
@@@ -75,13 -86,13 +86,13 @@@ pub(crate) async fn saas_gateway(operat
.unwrap_or_default();
let secret = crate::core_host::core::auth::get_rpc_token();
match decide(&req, secret, now, resolve_scope) {
- Err(response) => response,
+ Err(refusal) => refusal_response(refusal),
- Ok(GatewayScope::User(agent)) => {
- let ctx = Arc::clone(agent.context());
- // Holding the state for the request keeps the agent from being
+ Ok(GatewayScope::User(profile)) => {
+ let ctx = Arc::clone(profile.context());
+ // Holding the state for the request keeps the profile from being
// evicted under it.
let response = CoreContext::scope(ctx, next.run(req)).await;
- drop(agent);
+ drop(profile);
response
}
Ok(GatewayScope::Operator) => CoreContext::scope(operator, next.run(req)).await,