Skip to content

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

merge: sync main into fix/storage-runtime-deadlock

oxoxDevd0c17f395a9c
diff --cc crates/openhuman-core/src/storage/mod.rs
index 206af24084,543a130dc0..222e6cd19f
--- a/crates/openhuman-core/src/storage/mod.rs
+++ b/crates/openhuman-core/src/storage/mod.rs
@@@ -176,19 -297,10 +297,10 @@@ pub async fn open(url: &str) -> Result<
);
// Every opened backend checks the process's lease fences on write; with
// no fence registered (every single-user host) that is a pass-through.
- let backend = tinystoragedrivers::open(&parsed).await?;
- // Prepare each linked crate's collection declarations before installing lease fences.
- // Legacy physical-source migration is handled separately by importers.
+ let backend =
+ connect_on_storage_runtime(move || async move { tinystoragedrivers::open(&parsed).await })
+ .await??;
- // Schema, scope move and migrations run on the raw backend, before any
- // lease fence exists to refuse them.
- let report = boot::prepare_and_migrate(&backend).await?;
- if !report.failures.is_empty() {
- tracing::warn!(
- target: "openhuman::storage",
- failures = report.failures.len(),
- "[storage] opened with unfinished migrations; they retry at the next boot"
- );
- }
+ boot::prepare_and_migrate(&backend).await?;
Ok(fenced_backend::wrap(backend))
}