Skip to content

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

refactor(core): clean up imports and test assertions

Steven Enamakel1be989a530dc
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs
index 9e3f25abc7..3c06b89bbd 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs
@@ -5,7 +5,7 @@ use tinyagents_harness::run_queue::QueueLane;
use tinyagents_orchestration::steering::{steer_detached, SteerAccess, SteerError};
use super::cancel::now_ms;
-use super::registry::{RunningSubagentMetadata, control_admits, owner_key, registry};
+use super::registry::{control_admits, owner_key, registry, RunningSubagentMetadata};
/// Inject an instruction into a detached sub-agent owned by `parent_session`.
pub async fn steer(
diff --git a/crates/openhuman-core/src/artifacts/tiny_store_tests.rs b/crates/openhuman-core/src/artifacts/tiny_store_tests.rs
index 9c6300f976..764d3f1c32 100644
--- a/crates/openhuman-core/src/artifacts/tiny_store_tests.rs
+++ b/crates/openhuman-core/src/artifacts/tiny_store_tests.rs
@@ -146,15 +146,13 @@ async fn explicit_artifact_context_binds_records_and_blobs_to_the_same_profile()
&context_b,
);
assert!(artifacts_b.get(&id).await.unwrap().is_none());
- assert!(
- files_b
- .as_ref()
- .unwrap()
- .metadata(&file.key)
- .await
- .unwrap()
- .is_none()
- );
+ assert!(files_b
+ .as_ref()
+ .unwrap()
+ .metadata(&file.key)
+ .await
+ .unwrap()
+ .is_none());
let card_a = CoreContext::scope(core_a.clone(), async {
super::super::store::get_artifact(&workspace, &id).await
@@ -360,20 +358,16 @@ async fn deleting_an_artifact_removes_its_card() {
.await
.unwrap();
let id = saved.record.id;
- assert!(
- super::super::store::get_artifact(&workspace, &id)
- .await
- .is_ok()
- );
+ assert!(super::super::store::get_artifact(&workspace, &id)
+ .await
+ .is_ok());
let (removed, notice) = artifacts.delete(&id).await.unwrap();
assert!(removed);
assert!(notice.is_none(), "{notice:?}");
- assert!(
- super::super::store::get_artifact(&workspace, &id)
- .await
- .is_err()
- );
+ assert!(super::super::store::get_artifact(&workspace, &id)
+ .await
+ .is_err());
}
struct NoopPublisher;