Skip to content

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

fix(storage): route local tenant scopes to installed backend

Steven Enamakelcac28cd49405
diff --git a/crates/openhuman-core/src/storage/scope_move_boot.rs b/crates/openhuman-core/src/storage/scope_move_boot.rs
index cb2184c62b..25cf9bc790 100644
--- a/crates/openhuman-core/src/storage/scope_move_boot.rs
+++ b/crates/openhuman-core/src/storage/scope_move_boot.rs
@@ -281,6 +281,11 @@ fn backend_for_target_scope(
return Ok((Arc::clone(backend), None));
}
let parsed = target_scope.parsed()?;
+ // Module, agent and other scopes below the local operator tenant live in
+ // the installed backend, exactly like the bare `local` scope.
+ if matches!(parsed.tenant, crate::storage::Tenant::Local) {
+ return Ok((Arc::clone(backend), None));
+ }
let crate::storage::Tenant::User(_) = parsed.tenant else {
anyhow::bail!(
"scope {} is not an admitted tenant scope",