Skip to content

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

fix(sessions): log backend strong refs after releasing workspace

Steven Enamakel044f081a363b
diff --git a/crates/openhuman-core/src/storage/sessions/workspace.rs b/crates/openhuman-core/src/storage/sessions/workspace.rs
index f176f82a6a..1929970524 100644
--- a/crates/openhuman-core/src/storage/sessions/workspace.rs
+++ b/crates/openhuman-core/src/storage/sessions/workspace.rs
@@ -55,6 +55,12 @@ pub fn release_workspace(workspace_dir: &Path) {
.unwrap_or_else(PoisonError::into_inner)
.remove(workspace_dir);
crate::storage::local::forget(workspace_dir);
+ if let Some(fallback) = fallback_removed.as_ref() {
+ eprintln!(
+ "release_workspace backend strong refs after local forget: {}",
+ Arc::strong_count(&fallback.backend)
+ );
+ }
}
/// The provider for `workspace_dir`: the installed one, else a