Skip to content

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

chore: files changed crates/openhuman-core/src/core/runtime/tenant.rs,crates/openhuman-core/src/prof

Steven Enamakele1a23f02c62b
diff --git a/crates/openhuman-core/src/core/runtime/tenant.rs b/crates/openhuman-core/src/core/runtime/tenant.rs
index 6fcd9bced4..a17f2a8270 100644
--- a/crates/openhuman-core/src/core/runtime/tenant.rs
+++ b/crates/openhuman-core/src/core/runtime/tenant.rs
@@ -40,6 +40,13 @@ impl Tenant {
}
}
+ /// Whether work for this tenant is scoped at all: a SaaS profile, an
+ /// embedded agent, or both. `false` only for the desktop's (or a CLI's)
+ /// own default orchestrator, whose state lives at the workspace root.
+ pub fn is_scoped(&self) -> bool {
+ self.profile.is_some() || self.agent.is_some()
+ }
+
/// This tenant without its agent: for tables that isolate profiles from
/// each other but are shared by the agents of one profile (and so, on the
/// desktop, keep their bare-id keys for embedded agents too).
diff --git a/crates/openhuman-core/src/profiles/host.rs b/crates/openhuman-core/src/profiles/host.rs
index b200aa01e9..1e274536dd 100644
--- a/crates/openhuman-core/src/profiles/host.rs
+++ b/crates/openhuman-core/src/profiles/host.rs
@@ -270,7 +270,6 @@ impl ProfileHost {
self.operator.derive_with(
ContextOverlay::new(config, user_domains(), ToolGroups::none())
.without_user_skill_roots()
- .session_agent(id.as_str())
.profile(id.as_str()),
)
}
@@ -339,7 +338,6 @@ impl ProfileHost {
let context = self.operator.derive_with(
ContextOverlay::new(config.clone(), user_domains(), ToolGroups::none())
.without_user_skill_roots()
- .session_agent(id.as_str())
.profile(id.as_str())
.agent_policy(profile_policy(&config)),
);