Skip to content

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

refactor(embed): extract profile resolution into helper

Steven Enamakel234882d95462
diff --git a/crates/openhuman-embed/src/profiles.rs b/crates/openhuman-embed/src/profiles.rs
index 84f659fc58..1d93fda456 100644
--- a/crates/openhuman-embed/src/profiles.rs
+++ b/crates/openhuman-embed/src/profiles.rs
@@ -54,9 +54,9 @@ use std::path::Path;
use std::sync::Arc;
use openhuman_core::agent::session_store::SessionStoreProvider;
-use openhuman_core::core::runtime::{CoreContext, CoreRuntime};
+use openhuman_core::core::runtime::CoreRuntime;
use openhuman_core::profiles::credentials::UserCredentialKind;
-use openhuman_core::profiles::{Profile, ProfileHost};
+use openhuman_core::profiles::ProfileHost;
use crate::error::CoreError;
@@ -353,11 +353,6 @@ fn ensure_service_token(path: &Path) -> Result<(), ProfileError> {
Ok(())
}
-/// The profile's context, for the handle.
-pub(crate) fn context_of(profile: &Profile) -> Arc<CoreContext> {
- Arc::clone(profile.context())
-}
-
#[cfg(test)]
#[path = "profiles_tests.rs"]
mod tests;