Skip to content

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

fix(orchestration): use ambient tenant for background router scope

Steven Enamakelb6b3047ea9d3
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
index 3d6f2e3b2d..f19a0fd850 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
@@ -83,7 +83,7 @@ pub(super) struct RouterScope {
pub(super) fn router_scope_for(ctx: &DispatchCtx, workspace_dir: &Path) -> RouterScope {
let profile = crate::core::runtime::tenant::isolated_unless_tenant(
- ctx.tenant(),
+ DispatchCtx::ambient().tenant(),
"background_completions",
)
.profile_only();