Skip to content

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

refactor(core): move DispatchCtx import to its consumers

Steven Enamakel111a39b79102
diff --git a/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs b/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
index cff2514c14..7867c234b3 100644
--- a/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
+++ b/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
@@ -12,7 +12,6 @@
//! [`CoreContext`], or the helpers built on it) rather than reaching for an
//! ambient one.
-use crate::core::runtime::DispatchCtx;
use std::sync::Arc;
use super::CoreContext;
diff --git a/crates/openhuman-core/src/desktop/control/schemas.rs b/crates/openhuman-core/src/desktop/control/schemas.rs
index 8131c61ab9..a1f4197168 100644
--- a/crates/openhuman-core/src/desktop/control/schemas.rs
+++ b/crates/openhuman-core/src/desktop/control/schemas.rs
@@ -1,5 +1,6 @@
//! RPC controllers for the local desktop connection.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/platform/doctor/schemas.rs b/crates/openhuman-core/src/platform/doctor/schemas.rs
index b312cf2bfc..4ae4731251 100644
--- a/crates/openhuman-core/src/platform/doctor/schemas.rs
+++ b/crates/openhuman-core/src/platform/doctor/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/security/devices/schemas.rs b/crates/openhuman-core/src/security/devices/schemas.rs
index c26185c57c..02b922b2c7 100644
--- a/crates/openhuman-core/src/security/devices/schemas.rs
+++ b/crates/openhuman-core/src/security/devices/schemas.rs
@@ -2,6 +2,7 @@
//!
//! Follows the exact pattern from `cron/schemas.rs`.
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/security/keyring_consent/schemas.rs b/crates/openhuman-core/src/security/keyring_consent/schemas.rs
index 07d341ac6f..e6c04c11e4 100644
--- a/crates/openhuman-core/src/security/keyring_consent/schemas.rs
+++ b/crates/openhuman-core/src/security/keyring_consent/schemas.rs
@@ -1,5 +1,6 @@
//! Controller registration for keyring consent RPC methods.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};