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 to satisfy conditional compilation

Steven Enamakel1aaeadca1d4c
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser.rs b/crates/openhuman-core/src/tools/impl/browser/browser.rs
index 997f9841a5..29111acec7 100644
--- a/crates/openhuman-core/src/tools/impl/browser/browser.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser.rs
@@ -13,16 +13,16 @@ use session_pool::{
browser_session_fingerprint, evict_thread_sessions, requires_rebind, thread_sessions,
ThreadSession,
};
-use task_approval::{approve_task_action, task_inputs};
#[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_approval::{approve_task_action, task_inputs};
use tinycomputer_bus::agent::{ContinueTaskRequest, TaskId, TaskStatus, TaskView};
use tinycomputer_bus::browser::{
Action, DownloadState, DownloadWaitRequest, LocateBy, Locator, NavigateRequest, ReadRequest,