Skip to content

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

fix(browser): reorder imports and fix unused import in tests

Steven Enamakel25def0b2ad65
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs b/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs
index 9dcd3be9b3..b15152a66e 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_runner_tests.rs
@@ -172,7 +172,11 @@ async fn positive_scoped_tool_limit_caps_hosted_runner_inner() {
let _ = crate::agent::stop_hooks::with_tool_call_limit(Some(1), async {
run_root_turn_via_hosted_agent(
- root_context("limited-runner-positive", "/tmp/limited-runner-positive", tx),
+ root_context(
+ "limited-runner-positive",
+ "/tmp/limited-runner-positive",
+ tx,
+ ),
hosted_base(),
"main".to_string(),
models,
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser.rs b/crates/openhuman-core/src/tools/impl/browser/browser.rs
index 9584f8d92a..9d2d0b3ef1 100644
--- a/crates/openhuman-core/src/tools/impl/browser/browser.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser.rs
@@ -7,7 +7,6 @@ use crate::security::approval::{ApprovalGate, GateOutcome};
use crate::security::SecurityPolicy;
#[path = "task_inputs.rs"]
mod task_inputs;
-use task_inputs::task_inputs;
use async_trait::async_trait;
use serde_json::{json, Value};
use session_pool::{
@@ -17,12 +16,13 @@ use session_pool::{
#[cfg(test)]
use session_pool::{MAX_THREAD_SESSIONS, SESSION_IDLE_TTL};
use sha2::{Digest, Sha256};
+#[cfg(test)]
+use std::{collections::HashMap, time::Duration};
use std::{
sync::{Arc, Mutex as StdMutex},
time::Instant,
};
-#[cfg(test)]
-use std::{collections::HashMap, time::Duration};
+use task_inputs::task_inputs;
use tinycomputer_bus::agent::{ContinueTaskRequest, TaskId, TaskStatus, TaskView};
use tinycomputer_bus::browser::{
Action, DownloadState, DownloadWaitRequest, LocateBy, Locator, NavigateRequest, ReadRequest,