Skip to content

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

fix(sessions): skip refusing provider when tenant agent key is set

Steven Enamakelf008c745e7df
diff --git a/crates/openhuman-core/src/storage/sessions/workspace.rs b/crates/openhuman-core/src/storage/sessions/workspace.rs
index 81e14bb3a5..f176f82a6a 100644
--- a/crates/openhuman-core/src/storage/sessions/workspace.rs
+++ b/crates/openhuman-core/src/storage/sessions/workspace.rs
@@ -71,7 +71,10 @@ pub fn provider_for_workspace(workspace_dir: &Path) -> Arc<dyn SessionStoreProvi
/// The provider over `workspace_dir`'s default backend, installed or not.
pub(super) fn fallback_provider(workspace_dir: &Path) -> Arc<dyn SessionStoreProvider> {
- if crate::core::runtime::is_saas() && crate::storage::installed().is_none() {
+ if crate::core::runtime::is_saas()
+ && crate::storage::installed().is_none()
+ && tenant_agent_key().is_none()
+ {
return refusing_provider(
"no host storage backend is installed for this SaaS session".to_owned(),
);