Skip to content

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

fix(profiles): report tenant_in_use instead of agent_state in slot diagnostics

Steven Enamakel77d0c2257ffa
diff --git a/crates/openhuman-core/src/profiles/host.rs b/crates/openhuman-core/src/profiles/host.rs
index a516095816..e31346f722 100644
--- a/crates/openhuman-core/src/profiles/host.rs
+++ b/crates/openhuman-core/src/profiles/host.rs
@@ -268,7 +268,7 @@ impl ProfileHost {
(
Arc::strong_count(&slot.state),
Arc::strong_count(&slot.state.context),
- Arc::strong_count(slot.state.context.agent_state()),
+ slot.state.context.tenant_in_use(),
)
})
.collect::<Vec<_>>();
@@ -281,7 +281,7 @@ impl ProfileHost {
profile_lease::release_all(self, closed).await;
if full {
log::debug!(
- "[profiles] no free profile slot; pinned strong counts (profile, context, agent_state)={pinned:?}"
+ "[profiles] no free profile slot; pinned counts (profile, context, tenant_in_use)={pinned:?}"
);
return Err(OpenError::Full {
max: self.saas.max_profiles_open,