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(profiles): use agent_state accessor and tidy imports
Steven Enamakela9ce07e69111
diff --git a/crates/openhuman-core/src/profiles/host.rs b/crates/openhuman-core/src/profiles/host.rsindex b541741dc8..a516095816 100644--- a/crates/openhuman-core/src/profiles/host.rs+++ b/crates/openhuman-core/src/profiles/host.rs@@ -34,9 +34,9 @@ use super::registry::ProfileRegistry;use super::types::{ProfileId, ProfileMeta, ProfileSummary};use crate::config::Config;use crate::core::runtime::{ContextOverlay, CoreContext, DomainSet, SaasConfig};+use crate::storage::StorageBackend;use crate::storage::fence::{FenceRegistry, LeaseFence};use crate::storage::lease::{LeaseGrant, LeaseStore};-use crate::storage::StorageBackend;use crate::tools::toolpacks::ToolGroups;/// One open profile.@@ -268,7 +268,7 @@ impl ProfileHost {(Arc::strong_count(&slot.state),Arc::strong_count(&slot.state.context),- Arc::strong_count(&slot.state.context.agent.state),+ Arc::strong_count(slot.state.context.agent_state()),)}).collect::<Vec<_>>();diff --git a/crates/openhuman-core/src/profiles/host_storage_tests.rs b/crates/openhuman-core/src/profiles/host_storage_tests.rsindex a3414c2040..76bf4cfa44 100644--- a/crates/openhuman-core/src/profiles/host_storage_tests.rs+++ b/crates/openhuman-core/src/profiles/host_storage_tests.rs@@ -37,9 +37,11 @@ async fn assert_supplied_backend_owns_the_cap_and_fence(crate::cron::client::store_in::<crate::cron::CronJob>(&config, &query_scope, agent_add()).await;let error = second.expect_err("the cap must be installed in the supplied backend");- assert!(error- .to_string()- .contains("Failed to insert cron agent job"));+ assert!(+ error+ .to_string()+ .contains("Failed to insert cron agent job")+ );let _opened = host.open(id).await.unwrap();let lease_ttl = host.saas().lease_ttl();