Skip to content

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

fix(session_store): wrap tenant session stores in an Arc

Steven Enamakel1085c3525d6a
diff --git a/crates/openhuman-rpc/src/session_store/mod.rs b/crates/openhuman-rpc/src/session_store/mod.rs
index 3797203acd..44a384bb6e 100644
--- a/crates/openhuman-rpc/src/session_store/mod.rs
+++ b/crates/openhuman-rpc/src/session_store/mod.rs
@@ -184,8 +184,10 @@ async fn provider_for_url_with(
.context("opening the configured storage backend")?;
let recover = recover_on_open
.unwrap_or_else(|| !crate::core_host::storage::driver_is_shared(backend.driver()));
- let provider = TenantSessionStores::new(Arc::clone(&backend), recover)
- .context("starting the session store")?;
+ let provider = Arc::new(
+ TenantSessionStores::new(Arc::clone(&backend), recover)
+ .context("starting the session store")?,
+ );
// Only a fully working bridge makes the backend the process's storage.
crate::core_host::storage::install_for_url(&url, backend);
log::info!(