The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(browser): remove unused Drop implementation for BrowserTool
Steven Enamakel76f1dbb9d689
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser.rs b/crates/openhuman-core/src/tools/impl/browser/browser.rsindex 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.rsdeleted file mode 100644index 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;- });- }- }- }- }-}