Skip to content

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

chore: files changed crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs,crates/o

Steven Enamakele9090fe9c841
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs b/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs
index 98dc94935c..2a10850e9d 100644
--- a/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs
@@ -408,7 +408,10 @@ async fn task_rejects_a_malformed_flow_before_the_module() {
)));
let tool = BrowserTool::new(Arc::new(SecurityPolicy::default()), client, 3);
let error = tool
- .run(&json!({"action":"task","goal":"Read the news","flow":{"steps":"not a list"}}), None)
+ .run(
+ &json!({"action":"task","goal":"Read the news","flow":{"steps":"not a list"}}),
+ None,
+ )
.await
.unwrap_err();
assert!(error.to_string().contains("Invalid flow"), "{error}");
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_unattended_tests.rs b/crates/openhuman-core/src/tools/impl/browser/browser_unattended_tests.rs
index 0aee310423..a9856d1ab0 100644
--- a/crates/openhuman-core/src/tools/impl/browser/browser_unattended_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser_unattended_tests.rs
@@ -174,8 +174,7 @@ async fn a_listed_direct_action_runs_for_cron_without_reading_the_page() {
async fn an_unlisted_or_untrusted_direct_action_is_not_waved_through() {
let session = SessionId::new("s-1");
let unlisted = offline_client(&["press"]);
- let outcome =
- approve_browser_action(&unlisted, &session, &click(), false, Some(&cron())).await;
+ let outcome = approve_browser_action(&unlisted, &session, &click(), false, Some(&cron())).await;
assert!(outcome.is_err());
let listed = offline_client(&["click"]);
for origin in [Some(external_channel()), Some(approval_workflow()), None] {
@@ -235,10 +234,16 @@ async fn an_allowed_action_is_logged_by_kind_and_digest_without_its_input() {
.lines()
.find(|line| line.contains(ALLOWED_LINE))
.unwrap_or_else(|| panic!("no unattended log line in {text:?}"));
- assert!(line.contains("action=\"fill\"") || line.contains("action=fill"), "{line}");
+ assert!(
+ line.contains("action=\"fill\"") || line.contains("action=fill"),
+ "{line}"
+ );
assert!(line.contains("action_digest="), "{line}");
assert!(line.contains("TrustedAutomation(Cron)"), "{line}");
- assert!(!line.contains("hunter2-password") && !line.contains("#secret-field"), "{line}");
+ assert!(
+ !line.contains("hunter2-password") && !line.contains("#secret-field"),
+ "{line}"
+ );
assert!(!line.contains("job-1"), "{line}");
}