Skip to content

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

chore: update comments to reflect removal of delegate_to_integrations_agent

Steven Enamakelfb5a8462b46e
diff --git a/crates/openhuman-app/src/lib.rs b/crates/openhuman-app/src/lib.rs
index 930c1b8255..09c6bebd42 100644
--- a/crates/openhuman-app/src/lib.rs
+++ b/crates/openhuman-app/src/lib.rs
@@ -2370,8 +2370,9 @@ pub fn run() {
// `core_process::CoreProcessHandle::ensure_running` via
// `tokio::spawn(run_server_embedded(..))`) runs *on* that runtime, so
// every JSON-RPC handler — including the deep tower
- // `web channel chat → orchestrator turn → delegate_to_integrations_agent
- // → sub-agent → composio_list_tools → load_config_with_timeout` —
+ // `web channel chat → orchestrator turn → integration action tool
+ // → composio execute → load_config_with_timeout` (and, at the time, the
+ // now-removed integrations sub-agent spawn in between) —
// burns through the same 2 MB. In `crahs.log` (2026-05-17, build
// 0.53.49) that tower plus the serde-monomorphised `Config` Visitor
// frames pushed past the guard page and aborted with
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/routing.rs b/crates/openhuman-core/src/channels/runtime/dispatch/routing.rs
index b376f5a577..d2f7f5afd0 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/routing.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/routing.rs
@@ -114,8 +114,8 @@ pub(super) async fn resolve_target_agent(channel: &str) -> AgentScoping {
//
// Crucially, a transient failure (backend 5xx / no client for a beat) or a
// timeout must NOT be laundered into "zero connected integrations": that
- // would drop `delegate_to_integrations_agent` from the turn's tool surface
- // and leave the channel agent unable to reach Gmail/Slack/etc. — the exact
+ // would drop every integration action from the turn's searchable tool
+ // catalogue and leave the channel agent unable to reach Gmail/Slack/etc. — the exact
// "just normal inference, no tool calling" symptom. So we take the
// status-returning fetch and, on `Unavailable`/timeout, fall back to the
// last cached snapshot (same defence the first-party turn path uses) rather
@@ -138,7 +138,7 @@ pub(super) async fn resolve_target_agent(channel: &str) -> AgentScoping {
channel = %channel,
target_agent = target_id,
timed_out = fetched.is_none(),
- "[dispatch::routing] Composio unavailable/timed out — using cached integration snapshot instead of an empty set (keeps delegate_to_integrations_agent live)"
+ "[dispatch::routing] Composio unavailable/timed out — using cached integration snapshot instead of an empty set (keeps the integration action catalogue live)"
);
}
// Use the expiry-tolerant read for the fallback: a transient blip that
@@ -190,9 +190,9 @@ pub(super) async fn resolve_target_agent(channel: &str) -> AgentScoping {
///
/// Only an `Authoritative` result (the backend explicitly reporting the current
/// set, even if empty) is taken at face value. `Unavailable` or a timeout falls
-/// back to `cached`, so a one-off 5xx/slow call can't drop
-/// `delegate_to_integrations_agent` and silently disable tool calling for the
-/// turn (the "just normal inference" bug). With no cache to fall back on the
+/// back to `cached`, so a one-off 5xx/slow call can't drop the integration
+/// action catalogue and silently disable tool calling for the turn (the
+/// "just normal inference" bug). With no cache to fall back on the
/// result is empty — the same conservative default as before, but reached only
/// when we genuinely have no better truth.
pub(super) fn connected_with_fallback(
@@ -211,8 +211,8 @@ pub(super) fn connected_with_fallback(
/// * every tool name in the agent's `[tools] named = [...]` list
/// (when the scope is [`ToolScope::Named`]); and
/// * every name produced by the per-turn synthesised delegation tools
-/// in `extra_tools` (e.g. `research`, `plan`,
-/// `delegate_to_integrations_agent`).
+/// in `extra_tools` (e.g. `research`, `plan`) and the deferred
+/// integration action tools beside them.
///
/// When the agent's tool scope is [`ToolScope::Wildcard`] **and** there
/// are no `extra_tools`, returns `None` to preserve the legacy
diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations/cache.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations/cache.rs
index 941d71f7ac..0b75e6453d 100644
--- a/crates/openhuman-core/src/integrations/composio/connected_integrations/cache.rs
+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations/cache.rs
@@ -120,8 +120,8 @@ pub fn cached_active_integrations(config: &Config) -> Option<Vec<ConnectedIntegr
///
/// Intended ONLY as a transient-failure fallback: when a live fetch reports
/// `Unavailable`/times out, preserving the last-known integrations is strictly
-/// better than collapsing the delegation surface to an empty set (which drops
-/// `delegate_to_integrations_agent` and silently disables channel tool-calling).
+/// better than collapsing the integration surface to an empty set (which drops
+/// every searchable integration action and silently disables channel tool-calling).
/// Without this, a backend blip that lands just after the 60 s TTL expiry still
/// wipes tool-calling despite having a perfectly good previous snapshot. A fresh
/// fetch repopulates the cache the moment the backend recovers, so the stale