Skip to content

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

fix(embed): propagate storage driver alongside the opened backend

Steven Enamakel52e453c6cf7d
diff --git a/crates/openhuman-embed/src/runtime/run.rs b/crates/openhuman-embed/src/runtime/run.rs
index 701be203ab..1f6dbc9d8f 100644
--- a/crates/openhuman-embed/src/runtime/run.rs
+++ b/crates/openhuman-embed/src/runtime/run.rs
@@ -82,8 +82,9 @@ impl RuntimeBuilder {
.map_err(|error| anyhow::Error::new(RuntimeError::Invalid(error)))?;
// The server's runtime installs the same, already opened backend
// rather than opening the URL a second time.
- if let Some(backend) = storage {
+ if let Some((backend, driver)) = storage {
builder.seams.storage = Some(StorageSource::Backend(backend));
+ builder.seams.storage_driver = driver;
}
let summary = builder.summary();
@@ -140,7 +141,8 @@ impl CliGlobals {
/// configured, now opened.
fn install(
mut self,
- ) -> Result<Option<Arc<dyn openhuman_core::storage::StorageBackend>>, String> {
+ ) -> Result<Option<(Arc<dyn openhuman_core::storage::StorageBackend>, Option<String>)>, String>
+ {
if let Some(engine) = self.memory_engine {
openhuman_core::memory::engine::install_host_engine(engine);
}
@@ -150,7 +152,9 @@ impl CliGlobals {
}
self.seams.open_storage_blocking()?;
let storage = match &self.seams.storage {
- Some(StorageSource::Backend(backend)) => Some(Arc::clone(backend)),
+ Some(StorageSource::Backend(backend)) => {
+ Some((Arc::clone(backend), self.seams.storage_driver.clone()))
+ }
_ => None,
};
let seams = self.seams.install()?;