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
style: apply rustfmt formatting and refresh saas ambient baseline
Steven Enamakeld7b0d7e0762f
diff --git a/crates/openhuman-core/src/user_agents/surface_tests.rs b/crates/openhuman-core/src/user_agents/surface_tests.rsindex c9d9801165..e7a85fe700 100644--- a/crates/openhuman-core/src/user_agents/surface_tests.rs+++ b/crates/openhuman-core/src/user_agents/surface_tests.rs@@ -41,7 +41,12 @@ fn the_saas_planes_never_overlap() {#[test]fn chat_is_open_but_other_channel_methods_are_not() {assert!(visible_in(true, true, "openhuman.channel_web_chat", false));- assert!(visible_in(true, true, "openhuman.threads_regenerate", false));+ assert!(visible_in(+ true,+ true,+ "openhuman.threads_regenerate",+ false+ ));for method in ["openhuman.channels_list","openhuman.channels_connect",diff --git a/crates/openhuman-rpc/src/server/saas_gateway.rs b/crates/openhuman-rpc/src/server/saas_gateway.rsindex 68bb4163ce..2ab368818f 100644--- a/crates/openhuman-rpc/src/server/saas_gateway.rs+++ b/crates/openhuman-rpc/src/server/saas_gateway.rs@@ -44,7 +44,10 @@ pub(crate) fn is_closed_in_saas(path: &str) -> bool {if prefix.ends_with('/') {path.starts_with(prefix)} else {- path == *prefix || path.strip_prefix(prefix).is_some_and(|rest| rest.starts_with('/'))+ path == *prefix+ || path+ .strip_prefix(prefix)+ .is_some_and(|rest| rest.starts_with('/'))}})}diff --git a/crates/openhuman-rpc/src/server/saas_gateway_tests.rs b/crates/openhuman-rpc/src/server/saas_gateway_tests.rsindex 31baf06f3e..0155a407bf 100644--- a/crates/openhuman-rpc/src/server/saas_gateway_tests.rs+++ b/crates/openhuman-rpc/src/server/saas_gateway_tests.rs@@ -20,7 +20,15 @@ fn single_user_surfaces_are_closed() {fn the_gateway_surfaces_stay_open() {// `/events` itself is the per-user chat stream, gated on the user scope by// the layer rather than closed by prefix.- for path in ["/", "/health", "/schema", "/rpc", "/v1x", "/eventsource", "/events"] {+ for path in [+ "/",+ "/health",+ "/schema",+ "/rpc",+ "/v1x",+ "/eventsource",+ "/events",+ ] {assert!(!is_closed_in_saas(path), "{path}");}}diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.jsonindex fc73e1464b..f54806f60a 100644--- a/scripts/ci/saas-ambient-baseline.json+++ b/scripts/ci/saas-ambient-baseline.json@@ -471,7 +471,7 @@{"rule": "home-dir","path": "crates/openhuman-core/src/core/runtime/saas.rs",- "line": 167,+ "line": 180,"text": "home: dirs::home_dir(),","occurrence": 1},@@ -1346,21 +1346,21 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/ops/parallel_turn.rs",- "line": 50,+ "line": 54,"text": "let handle = tokio::spawn(crate::core::runtime::context::CoreContext::propagate(","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/ops/parallel_turn.rs",- "line": 225,+ "line": 230,"text": "tokio::spawn(async move {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/ops/parallel_turn.rs",- "line": 258,+ "line": 265,"text": "tokio::spawn(async move {","occurrence": 2},@@ -1381,7 +1381,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/ops/state.rs",- "line": 68,+ "line": 82,"text": "tokio::spawn(async move {","occurrence": 1},@@ -1399,13 +1399,6 @@"text": "let persisted = tokio::task::spawn_blocking(move || {","occurrence": 1},- {- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/web_chat/progress_bridge.rs",- "line": 336,- "text": "tokio::spawn(async move {",- "occurrence": 1- },{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/suggestions.rs",diff --git a/tests/saas_mode_e2e.rs b/tests/saas_mode_e2e.rsindex d42dc2f802..a5ac558001 100644--- a/tests/saas_mode_e2e.rs+++ b/tests/saas_mode_e2e.rs@@ -609,7 +609,10 @@ fn chat_events_reach_only_the_user_whose_turn_produced_them() {match alice_events.recv_timeout(Duration::from_millis(500)) {Ok(data) if data.contains("chat-1") => {alice_got.push(data);- if alice_got.iter().any(|e| e.contains("error") || e.contains("done")) {+ if alice_got+ .iter()+ .any(|e| e.contains("error") || e.contains("done"))+ {break;}}