Skip to content

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

fix(browser): drop duplicate Drop impl module that breaks the build on main

Steven Enamakelf827621bdb07
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser.rs b/crates/openhuman-core/src/tools/impl/browser/browser.rs
index d715f75a42..2309afc3a4 100644
--- a/crates/openhuman-core/src/tools/impl/browser/browser.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser.rs
@@ -1,6 +1,4 @@
//! Agent-facing browser backed by the TinyComputer module's browser and task members.
-#[path = "browser_cleanup.rs"]
-mod cleanup;
#[path = "browser_drop.rs"]
mod browser_drop;
#[path = "browser_pending.rs"]
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_cleanup.rs b/crates/openhuman-core/src/tools/impl/browser/browser_cleanup.rs
deleted file mode 100644
index efadaa0f72..0000000000
--- a/crates/openhuman-core/src/tools/impl/browser/browser_cleanup.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-use super::BrowserTool;
-
-impl Drop for BrowserTool {
- fn drop(&mut self) {
- if self.thread_key.lock().ok().is_some_and(|key| key.is_some()) {
- // A later turn in this conversation reuses the module session.
- // Explicit `close` removes it; module shutdown owns final cleanup.
- return;
- }
- if let Ok(mut held) = self.session.try_lock() {
- if let Some(id) = held.take() {
- let client = self.client.clone();
- if let Ok(runtime) = tokio::runtime::Handle::try_current() {
- runtime.spawn(async move {
- let _ = client.close_session(&id).await;
- });
- }
- }
- }
- }
-}