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): add debug logging to workspace release paths
Steven Enamakel63c31e59848d
diff --git a/crates/openhuman-core/src/storage/local.rs b/crates/openhuman-core/src/storage/local.rsindex b337a4d2f6..072cb4216f 100644--- a/crates/openhuman-core/src/storage/local.rs+++ b/crates/openhuman-core/src/storage/local.rs@@ -269,10 +269,11 @@ pub fn release_all() {/// Forgets the default opened for `workspace_dir`, so the next call opens it/// afresh; also how a test models a restart.pub fn forget(workspace_dir: &Path) {- WORKSPACES+ let removed = WORKSPACES.lock().unwrap_or_else(PoisonError::into_inner).remove(workspace_dir);+ eprintln!("storage_local_forget path={} removed={}", workspace_dir.display(), removed.is_some());}#[cfg(test)]diff --git a/crates/openhuman-core/src/storage/sessions/workspace.rs b/crates/openhuman-core/src/storage/sessions/workspace.rsindex f176f82a6a..fbe118b38b 100644--- a/crates/openhuman-core/src/storage/sessions/workspace.rs+++ b/crates/openhuman-core/src/storage/sessions/workspace.rs@@ -50,10 +50,11 @@ pub fn release_workspace_defaults() {/// workspace keeps its live handles. A restart of one workspace, not of the/// process; [`release_workspace_defaults`] is the process-wide reset.pub fn release_workspace(workspace_dir: &Path) {- FALLBACKS+ let fallback_removed = FALLBACKS.lock().unwrap_or_else(PoisonError::into_inner).remove(workspace_dir);+ eprintln!("release_workspace path={} fallback_removed={}", workspace_dir.display(), fallback_removed.is_some());crate::storage::local::forget(workspace_dir);}@@ -95,6 +96,7 @@ pub(super) fn fallback_provider(workspace_dir: &Path) -> Arc<dyn SessionStoreProreturn existing.provider.clone();}}+ eprintln!("fallback_provider new path={} backend_ptr={:p}", workspace_dir.display(), Arc::as_ptr(&backend));match TenantSessionStores::new(Arc::clone(&backend), false) {Ok(provider) => {let provider = Arc::new(provider);