Skip to content

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

refactor(orchestration): use profile id when resolving completion owner

Steven Enamakelde58a72c2df5
diff --git a/crates/openhuman-core/src/agent/orchestration/completion_owners.rs b/crates/openhuman-core/src/agent/orchestration/completion_owners.rs
index ef26e8f40b..1015f4dc6c 100644
--- a/crates/openhuman-core/src/agent/orchestration/completion_owners.rs
+++ b/crates/openhuman-core/src/agent/orchestration/completion_owners.rs
@@ -82,8 +82,8 @@ pub(crate) fn profiles_of(id: &str) -> Vec<String> {
/// agent for it, reopened if it was evicted. `None` outside SaaS or for a
/// profile the host does not know.
pub(crate) fn context_for_profile(profile: &str) -> Option<Arc<CoreContext>> {
- let id = crate::user_agents::UserAgentId::parse(profile).ok()?;
- match crate::user_agents::host::host()?.open(&id) {
+ let id = crate::profiles::ProfileId::parse(profile).ok()?;
+ match crate::profiles::host::host()?.open(&id) {
Ok(state) => Some(Arc::clone(state.context())),
Err(error) => {
log::warn!("[completion_owners] cannot open the owning agent: {error}");