The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(orchestration): expose RouterScope workspace dir via accessor
Steven Enamakel5fdc793649be
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rsindex 5c6c208fad..bfc548b6ad 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs@@ -80,6 +80,12 @@ pub(super) struct RouterScope {workspace_dir: PathBuf,}+impl RouterScope {+ pub(super) fn workspace_dir(&self) -> &Path {+ &self.workspace_dir+ }+}+pub(super) fn router_scope_for(ctx: &DispatchCtx, workspace_dir: &Path) -> RouterScope {let profile = crate::core::runtime::tenant::isolated_unless_tenant(ctx.tenant(),diff --git a/crates/openhuman-core/src/agent/orchestration/completion_target_tests.rs b/crates/openhuman-core/src/agent/orchestration/completion_target_tests.rsindex 6f4636b803..e89cee1c62 100644--- a/crates/openhuman-core/src/agent/orchestration/completion_target_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/completion_target_tests.rs@@ -53,7 +53,7 @@ pub(crate) fn forget_workspace_for_test(workspace_dir: &Path) {let scopes: Vec<_> = st.stores.keys()- .filter(|scope| scope.workspace_dir == workspace_dir)+ .filter(|scope| scope.workspace_dir() == workspace_dir).cloned().collect();for scope in &scopes {@@ -71,7 +71,7 @@ pub(crate) fn forget_workspace_for_test(workspace_dir: &Path) {st.deleted_threads.remove(&thread);}st.recovered_workspaces- .retain(|scope| scope.workspace_dir != workspace_dir);+ .retain(|scope| scope.workspace_dir() != workspace_dir);st.session_threads.clear();st.session_order.clear();drop(st);