Skip to content

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

refactor(storage): drop redundant local tenant early return

Steven Enamakeld16d7b42c870
diff --git a/crates/openhuman-core/src/storage/scope_move_boot.rs b/crates/openhuman-core/src/storage/scope_move_boot.rs
index 25cf9bc790..cb2184c62b 100644
--- a/crates/openhuman-core/src/storage/scope_move_boot.rs
+++ b/crates/openhuman-core/src/storage/scope_move_boot.rs
@@ -281,11 +281,6 @@ 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",