The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(runtime): log each derived-arc backtrace frame separately
Steven Enamakelfaed25e368f3
diff --git a/crates/openhuman-core/src/core/runtime/context_agent.rs b/crates/openhuman-core/src/core/runtime/context_agent.rsindex 070c17aabe..be5d62128b 100644--- a/crates/openhuman-core/src/core/runtime/context_agent.rs+++ b/crates/openhuman-core/src/core/runtime/context_agent.rs@@ -90,7 +90,7 @@ impl CoreContext {////// A host must not close or evict a tenant while this is `true`: its/// in-flight tables (turns, queues, caches) live in those slots.- pub fn debug_counts(self: &Arc<Self>) -> usize { let n = Arc::strong_count(&self.agent.state); if n > 1 { for (w, bt) in super::DBG_DERIVED.lock().unwrap().iter() { if let Some(c) = w.upgrade() { if Arc::ptr_eq(&c.agent.state, &self.agent.state) && !Arc::ptr_eq(&c, self) { log::warn!("DBGLEAK {}", bt.lines().filter(|l| l.contains("openhuman")).take(14).collect::<Vec<_>>().join(" | ")); } } } } n }+ pub fn debug_counts(self: &Arc<Self>) -> usize { let n = Arc::strong_count(&self.agent.state); if n > 1 { for (w, bt) in super::DBG_DERIVED.lock().unwrap().iter() { if let Some(c) = w.upgrade() { if Arc::ptr_eq(&c.agent.state, &self.agent.state) && !Arc::ptr_eq(&c, self) { for l in bt.lines().filter(|l| l.contains("openhuman") && !l.trim_start().starts_with("at ")).take(12) { log::warn!("DBGLEAK {}", l.trim()); } } } } } n }pub fn tenant_in_use(self: &Arc<Self>) -> bool {Arc::strong_count(self) > 1 || Arc::strong_count(&self.agent.state) > 1