Skip to content

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

chore: The diff for this change was not included in your message, so I can't see what actually chang

Steven Enamakel95af98120415
diff --git a/crates/openhuman-core/src/storage/local.rs b/crates/openhuman-core/src/storage/local.rs
index 211715c443..b1aa47d2eb 100644
--- a/crates/openhuman-core/src/storage/local.rs
+++ b/crates/openhuman-core/src/storage/local.rs
@@ -98,10 +98,16 @@ impl Opened {
}
}
-/// Databases already opened (and imported) by this process.
+/// A database this process has opened, and whether its import finished.
#[cfg(feature = "storage-sqlite")]
-static OPENED: LazyLock<Mutex<HashMap<PathBuf, Arc<dyn StorageBackend>>>> =
- LazyLock::new(Mutex::default);
+struct OpenedDb {
+ backend: Arc<dyn StorageBackend>,
+ imported: bool,
+}
+
+/// Databases opened by this process, by path.
+#[cfg(feature = "storage-sqlite")]
+static OPENED: LazyLock<Mutex<HashMap<PathBuf, OpenedDb>>> = LazyLock::new(Mutex::default);
/// The storage a small store uses for this call, or `None` for its legacy
/// tables.