Skip to content

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

chore: remove unused imports in test files

Steven Enamakel9ad0afac0fbd
diff --git a/crates/openhuman-core/src/core/dispatch_tests.rs b/crates/openhuman-core/src/core/dispatch_tests.rs
index 91c95bd461..67bc5a24f6 100644
--- a/crates/openhuman-core/src/core/dispatch_tests.rs
+++ b/crates/openhuman-core/src/core/dispatch_tests.rs
@@ -1,7 +1,6 @@
use super::*;
use crate::config::test_env::EnvVarGuard;
use serde_json::json;
-use std::ffi::OsString;
fn test_state() -> AppState {
AppState {
diff --git a/crates/openhuman-core/src/core/runtime/subscribers_tests.rs b/crates/openhuman-core/src/core/runtime/subscribers_tests.rs
index 249e025b92..e38921ec6a 100644
--- a/crates/openhuman-core/src/core/runtime/subscribers_tests.rs
+++ b/crates/openhuman-core/src/core/runtime/subscribers_tests.rs
@@ -1,5 +1,3 @@
-use std::ffi::OsString;
-use std::sync::MutexGuard;
use super::{
group_first_time_when_bus_ready, learning_first_time_when_bus_ready, DomainSubscriberPlan,
diff --git a/crates/openhuman-core/src/integrations/composio/action_tool_tests.rs b/crates/openhuman-core/src/integrations/composio/action_tool_tests.rs
index 181c79ef07..9a10b7fe2e 100644
--- a/crates/openhuman-core/src/integrations/composio/action_tool_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/action_tool_tests.rs
@@ -1,7 +1,6 @@
use super::*;
use crate::agent::harness::with_current_sandbox_mode;
use crate::config::test_env::EnvVarGuard;
-use std::path::Path;
/// Build a minimal `Arc<Config>` with `composio.mode = "backend"`
/// (the default). The sandbox gate runs *before* any HTTP call or
diff --git a/crates/openhuman-core/src/integrations/composio/tools_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_tests.rs
index 0be7324b43..3c54929159 100644
--- a/crates/openhuman-core/src/integrations/composio/tools_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools_tests.rs
@@ -1,5 +1,4 @@
use super::*;
-use std::path::Path;
use std::sync::Arc;
use crate::config::test_env::EnvVarGuard;
diff --git a/crates/openhuman-core/src/memory/ops/files_tests.rs b/crates/openhuman-core/src/memory/ops/files_tests.rs
index d98d6d1c27..2f256c53a5 100644
--- a/crates/openhuman-core/src/memory/ops/files_tests.rs
+++ b/crates/openhuman-core/src/memory/ops/files_tests.rs
@@ -1,4 +1,3 @@
-use std::ffi::OsString;
use tempfile::TempDir;
diff --git a/crates/openhuman-core/src/memory/ops/learn_tests.rs b/crates/openhuman-core/src/memory/ops/learn_tests.rs
index 1754bc7102..af4406f51f 100644
--- a/crates/openhuman-core/src/memory/ops/learn_tests.rs
+++ b/crates/openhuman-core/src/memory/ops/learn_tests.rs
@@ -1,9 +1,7 @@
-use std::ffi::OsString;
use serde_json::json;
use super::*;
-use crate::config::test_env::EnvVarGuard;
use crate::memory::api::types::NamespaceDocumentInput;
fn ensure_memory_client() {
diff --git a/crates/openhuman-core/src/memory/query/ingest_document_tests.rs b/crates/openhuman-core/src/memory/query/ingest_document_tests.rs
index 60f82af2d9..8945275e5b 100644
--- a/crates/openhuman-core/src/memory/query/ingest_document_tests.rs
+++ b/crates/openhuman-core/src/memory/query/ingest_document_tests.rs
@@ -1,11 +1,9 @@
use super::*;
-use std::ffi::OsString;
use tempfile::TempDir;
use crate::config::test_env::EnvVarGuard;
use crate::config::Config;
-use crate::config::TEST_ENV_LOCK;
use serde_json::json;
use tinytools::Tool;
diff --git a/crates/openhuman-core/src/memory/tools/goals_tests.rs b/crates/openhuman-core/src/memory/tools/goals_tests.rs
index 3f781c2f3f..171f45d53a 100644
--- a/crates/openhuman-core/src/memory/tools/goals_tests.rs
+++ b/crates/openhuman-core/src/memory/tools/goals_tests.rs
@@ -11,12 +11,10 @@
use super::*;
-use std::ffi::OsString;
use tempfile::TempDir;
use crate::config::test_env::EnvVarGuard;
-use crate::config::TEST_ENV_LOCK;
use tinytools::Tool;
/// Reset the shared goals document, and say why that has to happen at all.
diff --git a/crates/openhuman-core/src/memory/tools/tool_memory/guard_tests.rs b/crates/openhuman-core/src/memory/tools/tool_memory/guard_tests.rs
index b6e440a4ef..c4563cf495 100644
--- a/crates/openhuman-core/src/memory/tools/tool_memory/guard_tests.rs
+++ b/crates/openhuman-core/src/memory/tools/tool_memory/guard_tests.rs
@@ -5,7 +5,6 @@
//! `tinymemory-tools`.
use super::*;
-use std::ffi::OsString;
use crate::memory::api::provider::MemoryProvider;
use crate::memory::api::tool_memory::{ToolMemoryPriority, ToolMemorySource};
@@ -14,7 +13,6 @@ use tempfile::TempDir;
use crate::config::test_env::EnvVarGuard;
use crate::config::Config;
-use crate::config::TEST_ENV_LOCK;
use crate::memory::guard::policy::GUARD_DENIED_PREFIX;
use crate::security::live_policy;
use crate::security::policy::{AutonomyLevel, SecurityPolicy};
diff --git a/crates/openhuman-core/src/memory/tree/tree_runtime/cli_tests.rs b/crates/openhuman-core/src/memory/tree/tree_runtime/cli_tests.rs
index 48de5c997f..10685664bc 100644
--- a/crates/openhuman-core/src/memory/tree/tree_runtime/cli_tests.rs
+++ b/crates/openhuman-core/src/memory/tree/tree_runtime/cli_tests.rs
@@ -1,4 +1,3 @@
-use std::ffi::OsString;
use std::path::PathBuf;
use tempfile::TempDir;
diff --git a/crates/openhuman-core/src/threads/ops_tests.rs b/crates/openhuman-core/src/threads/ops_tests.rs
index d4810f128d..058fb1a60b 100644
--- a/crates/openhuman-core/src/threads/ops_tests.rs
+++ b/crates/openhuman-core/src/threads/ops_tests.rs
@@ -10,8 +10,6 @@ use crate::memory::conversations as conversations_store;
use crate::threads::turn_state::{ClearTurnStateRequest, GetTurnStateRequest};
use crate::threads::ThreadsError;
use serde_json::{json, Value};
-use std::ffi::OsString;
-use std::path::Path;
use tinyagents_harness::title::{build_title_prompt, THREAD_TITLE_SYSTEM_PROMPT};
use tinyagents_session::turn_state::TurnState;
diff --git a/crates/openhuman-core/src/threads/schemas_tests.rs b/crates/openhuman-core/src/threads/schemas_tests.rs
index a8e08511ae..458e4fe8b0 100644
--- a/crates/openhuman-core/src/threads/schemas_tests.rs
+++ b/crates/openhuman-core/src/threads/schemas_tests.rs
@@ -1,5 +1,4 @@
use super::*;
-use crate::config::test_env::EnvVarGuard;
use serde_json::json;
const ALL_FUNCTIONS: &[&str] = &[
diff --git a/crates/openhuman-core/src/web3/wallet/test_support.rs b/crates/openhuman-core/src/web3/wallet/test_support.rs
index dfeb889edd..c0b46dc89e 100644
--- a/crates/openhuman-core/src/web3/wallet/test_support.rs
+++ b/crates/openhuman-core/src/web3/wallet/test_support.rs
@@ -9,7 +9,6 @@
//! so every chain's signer derives a deterministic address.
//! - Sample addresses corresponding to that mnemonic (one per chain).
-use std::path::Path;
use once_cell::sync::Lazy;
use parking_lot::Mutex;
@@ -18,7 +17,6 @@ use tempfile::TempDir;
use super::ops::{setup, WalletAccount, WalletChain, WalletSetupParams, WalletSetupSource};
use crate::config::rpc as config_rpc;
use crate::config::test_env::EnvVarGuard;
-use crate::config::TEST_ENV_LOCK;
pub(crate) static TEST_LOCK: Lazy<Mutex<()>> = Lazy::new(|| Mutex::new(()));