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
chore: files changed crates/openhuman-core/src/config/schema/load_env_overlay_context_tests.rs
Steven Enamakel2345e7b9ee1a
diff --git a/crates/openhuman-core/src/config/schema/load_env_overlay_context_tests.rs b/crates/openhuman-core/src/config/schema/load_env_overlay_context_tests.rsindex eadb87029e..9744cd3802 100644--- a/crates/openhuman-core/src/config/schema/load_env_overlay_context_tests.rs+++ b/crates/openhuman-core/src/config/schema/load_env_overlay_context_tests.rs@@ -166,3 +166,38 @@ fn env_overlay_keeps_unattended_browser_actions_and_unknown_names_allow_nothing(assert!(cfg.browser.allows_unattended("click"));assert!(!cfg.browser.allows_unattended("navigate"));}++#[test]+fn unknown_unattended_browser_actions_are_counted_not_echoed() {+ #[derive(Clone, Default)]+ struct Logs(std::sync::Arc<std::sync::Mutex<Vec<u8>>>);+ impl std::io::Write for Logs {+ fn write(&mut self, bytes: &[u8]) -> std::io::Result<usize> {+ self.0.lock().unwrap().extend_from_slice(bytes);+ Ok(bytes.len())+ }+ fn flush(&mut self) -> std::io::Result<()> {+ Ok(())+ }+ }+ let logs = Logs::default();+ let writer = logs.clone();+ let subscriber = tracing_subscriber::fmt()+ .with_writer(move || writer.clone())+ .with_ansi(false)+ .finish();+ let _guard = tracing::subscriber::set_default(subscriber);+ tracing::callsite::rebuild_interest_cache();++ let mut cfg = Config::default();+ cfg.browser.unattended_actions = vec!["click".into(), "sk-live-not-an-action".into()];+ cfg.apply_env_overlay_with(&HashMapEnv::new());++ let text = String::from_utf8(logs.0.lock().unwrap().clone()).unwrap();+ let line = text+ .lines()+ .find(|line| line.contains("unattended_actions"))+ .unwrap_or_else(|| panic!("no unattended_actions warning in {text:?}"));+ assert!(line.contains("count=1"), "{line}");+ assert!(!line.contains("sk-live-not-an-action"), "{line}");+}