Skip to content

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

fix(storage): reuse cached workspace backend when present

Steven Enamakele9085e28b1b4
diff --git a/crates/openhuman-core/src/storage/local.rs b/crates/openhuman-core/src/storage/local.rs
index 8204526c4c..87208959fb 100644
--- a/crates/openhuman-core/src/storage/local.rs
+++ b/crates/openhuman-core/src/storage/local.rs
@@ -159,6 +159,9 @@ pub fn backend_for(workspace_dir: &Path) -> Result<Arc<dyn StorageBackend>> {
}
let cell = workspace_backend(workspace_dir);
+ if let Some(backend) = cell.get() {
+ return Ok(Arc::clone(backend));
+ }
#[cfg(test)]
signal_test_sync_backend_entry();