Skip to content

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

chore: fix test promise typing and gate unused imports

Steven Enamakelbbd927fa6c5a
diff --git a/app/src/components/settings/panels/__tests__/RecoveryPhrasePanel.test.tsx b/app/src/components/settings/panels/__tests__/RecoveryPhrasePanel.test.tsx
index 0df528a13a..a8c3a37b39 100644
--- a/app/src/components/settings/panels/__tests__/RecoveryPhrasePanel.test.tsx
+++ b/app/src/components/settings/panels/__tests__/RecoveryPhrasePanel.test.tsx
@@ -634,8 +634,8 @@ describe('RecoveryPhrasePanel — import mode word inputs and valid/invalid styl
let finishPersist!: () => void;
mockPersistLocalWalletFromMnemonic.mockImplementationOnce(
() =>
- new Promise<void>(resolve => {
- finishPersist = resolve;
+ new Promise<undefined>(resolve => {
+ finishPersist = () => resolve(undefined);
})
);
diff --git a/crates/openhuman-core/src/cron/ops.rs b/crates/openhuman-core/src/cron/ops.rs
index ba801f2eb1..adda107ff9 100644
--- a/crates/openhuman-core/src/cron/ops.rs
+++ b/crates/openhuman-core/src/cron/ops.rs
@@ -7,7 +7,7 @@ use serde_json::json;
use std::collections::HashSet;
use std::sync::Mutex;
use {
- crate::cron, crate::cron::add_shell_job, crate::cron::get_job, crate::cron::update_job,
+ crate::cron, crate::cron::add_shell_job, crate::cron::update_job,
tinyflows_schedule::types::CronJob, tinyflows_schedule::types::CronJobPatch,
tinyflows_schedule::types::CronRun, tinyflows_schedule::types::Schedule,
};
diff --git a/crates/openhuman-core/src/tools/impl/network/host.rs b/crates/openhuman-core/src/tools/impl/network/host.rs
index da37faa3d4..9408f0bece 100644
--- a/crates/openhuman-core/src/tools/impl/network/host.rs
+++ b/crates/openhuman-core/src/tools/impl/network/host.rs
@@ -7,6 +7,7 @@
use std::sync::Arc;
+#[cfg(feature = "web3")]
use tinytools::{PermissionLevel, Tool, ToolResult};
use tinytools_std::network::{
AsyncHtmlExtractor, HttpLimits, HttpRequestTool, NetGate, WebFetchTool,