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(session-host): move delegation tool surface doc to its implementation
Steven Enamakelde9108d39437
diff --git a/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs b/crates/openhuman-core/src/agent/session_host/prelude_integrations.rsindex 76e3c95a0b..636b78d31a 100644--- a/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs+++ b/crates/openhuman-core/src/agent/session_host/prelude_integrations.rs@@ -8,7 +8,6 @@ use tinyagents_runtime::ToolSnapshot;use super::OpenHumanTurnPrelude;impl OpenHumanTurnPrelude {-/// Takes the declarations the tinyagents session restored for this/// thread. Called before the boundary refresh so the rebuilt surface can/// include them.@@ -49,7 +48,6 @@ impl OpenHumanTurnPrelude {self.refresh_delegation_tool_surface();}-pub(super) async fn refresh_cold_integrations(&self) {let should_fetch = !self.mutable@@ -177,12 +175,6 @@ impl OpenHumanTurnPrelude {}mutable.workflows = latest;}-- /// Rebuild every delegation-dependent tool view from the current cached- /// integration set. This mirrors the legacy refresh's replace-not-append- /// semantics, but keeps the mutable authority in hook state rather than a- /// second turn loop. A revoked delegate is removed from the executable- /// source, schema, and policy together before this request is prepared.}/// Live connected integrations, falling back to the last cached snapshotdiff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex 0f794728a3..f24332c174 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -401,6 +401,11 @@ impl OpenHumanTurnPrelude {.clone()}+ /// Rebuild every delegation-dependent tool view from the current cached+ /// integration set. This mirrors the legacy refresh's replace-not-append+ /// semantics, but keeps the mutable authority in hook state rather than a+ /// second turn loop. A revoked delegate is removed from the executable+ /// source, schema, and policy together before this request is prepared.fn refresh_delegation_tool_surface(&self) {use crate::agent::harness::definition::AgentDefinitionRegistry;use crate::tools::agent_policy::ToolPolicyEngine;