Skip to content

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

chore(profiles): add debug logging to in_use

Steven Enamakel33e901deb95c
diff --git a/crates/openhuman-core/src/profiles/host.rs b/crates/openhuman-core/src/profiles/host.rs
index 896124bfd4..e321945e25 100644
--- a/crates/openhuman-core/src/profiles/host.rs
+++ b/crates/openhuman-core/src/profiles/host.rs
@@ -638,6 +638,7 @@ impl ProfileHost {
/// or a turn still running on its context (a detached turn outlives the
/// request that started it).
fn in_use(slot: &Slot) -> bool {
+ log::warn!("DBGINUSE slotstate={} ctx={} agentstate={}", Arc::strong_count(&slot.state), Arc::strong_count(&slot.state.context), Arc::strong_count(&slot.state.context.agent_state_arc()));
Arc::strong_count(&slot.state) > 1 || slot.state.context.tenant_in_use()
}