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
test(orchestration): assert store refusal reason in unscoped spawn test
Steven Enamakel445ed23a1daf
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rsindex d76555e51d..5dd52aaabf 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs@@ -295,9 +295,16 @@ async fn unscoped_async_spawn_refuses_before_persisting_a_running_session() {.expect("tool dispatch reports a refusal as a tool outcome");// An unscoped SaaS call fails closed on the store itself, so nothing was// persisted either way.- let sessions = SubagentSessionStore::new(workspace.path().to_path_buf())- .load()- .unwrap_or_default();+ let sessions = match SubagentSessionStore::new(workspace.path().to_path_buf()).load() {+ Ok(sessions) => sessions,+ Err(err) => {+ assert!(+ err.contains("no profile in SaaS mode; refusing a shared storage scope"),+ "unexpected store error: {err}"+ );+ Vec::new()+ }+ };assert!(result.is_error,"unscoped spawn must not report accepted: {}",