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(storage): simplify backend clone refcount logging
Steven Enamakel58b5786e456c
diff --git a/crates/openhuman-core/src/storage/local.rs b/crates/openhuman-core/src/storage/local.rsindex d3f141b211..c8b44fb0e1 100644--- a/crates/openhuman-core/src/storage/local.rs+++ b/crates/openhuman-core/src/storage/local.rs@@ -200,6 +200,7 @@ async fn initialized_backend(////// In SaaS mode with no backend installed, or when the default cannot be/// opened.+#[track_caller]pub fn backend_for(workspace_dir: &Path) -> Result<Arc<dyn StorageBackend>> {if let Some(backend) = installed() {return Ok(backend);@@ -210,14 +211,11 @@ pub fn backend_for(workspace_dir: &Path) -> Result<Arc<dyn StorageBackend>> {let cell = workspace_backend(workspace_dir);if let Some(backend) = cell.get() {let backend = Arc::clone(backend);- if Arc::strong_count(&backend) == 5 {- let trace = format!("{:?}", std::backtrace::Backtrace::force_capture());- let trace = trace.lines().take(12).collect::<Vec<_>>().join("\n");+ if Arc::strong_count(&backend) >= 4 {eprintln!(- "workspace backend clone reached {} refs at {}\n{}",+ "workspace backend clone refs={} caller={}",Arc::strong_count(&backend),- workspace_dir.display(),- trace+ std::panic::Location::caller());}return Ok(backend);