Skip to content

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

Merge upstream/main into oh-browser-unattended

Steven Enamakel3fe00feca53d
diff --cc crates/openhuman-core/src/config/schema/load_env_overlay_context_tests.rs
index a46170761b,a46170761b..eadb87029e
--- 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
@@@ -156,3 -156,3 +156,13 @@@ fn compaction_settings_bundle_the_trigg
cfg.compaction_trigger_tokens = Some(64_000);
assert_eq!(cfg.compaction_settings().trigger_tokens, Some(64_000));
}
++
++#[test]
++fn env_overlay_keeps_unattended_browser_actions_and_unknown_names_allow_nothing() {
++ let mut cfg = Config::default();
++ cfg.browser.unattended_actions = vec!["click".into(), "navigate".into()];
++ cfg.apply_env_overlay_with(&HashMapEnv::new());
++ assert_eq!(cfg.browser.unattended_actions, vec!["click", "navigate"]);
++ assert!(cfg.browser.allows_unattended("click"));
++ assert!(!cfg.browser.allows_unattended("navigate"));
++}