tinyhumansai/openhuman · error · anyhow::Error

toolkit ` ` is not connected. Connected toolkits: [ ]

Error message

toolkit `{toolkit}` is not connected. Connected toolkits: [{}]

What it means

Connectivity validation in `render_integrations_agent`. After `fetch_connected_integrations()`, the code searches the agent's connected integrations for one whose toolkit matches case-insensitively and is `connected`; if none matches, the prompt cannot be rendered and the error enumerates every currently-connected toolkit so the caller can pick a valid one.

Solutions

  1. Pick a toolkit from the `Connected toolkits: [...]` list in the message.
  2. Connect the wanted toolkit first (via the composio/auth flow), then re-run the dump.
  3. Check spelling/case — matching is case-insensitive but the slug must still be exact.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/agent/debug/mod.rs:272 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/62366a8b688c2f37. Report an issue: GitHub.

Appendix: source

Thrown at src/openhuman/agent/debug/mod.rs:272

/// dynamic prompt builder.
async fn render_integrations_agent(config: &Config, toolkit: &str) -> Result<DumpedPrompt> {
    let mut agent = Agent::from_config_for_agent(config, INTEGRATIONS_AGENT_ID)
        .with_context(|| format!("building integrations_agent session for `{toolkit}`"))?;
    agent.fetch_connected_integrations().await;

    let mut integration = agent
        .connected_integrations()
        .iter()
        .find(|ci| ci.connected && ci.toolkit.eq_ignore_ascii_case(toolkit))
        .cloned()
        .ok_or_else(|| {
            let connected: Vec<String> = agent
                .connected_integrations()
                .iter()
                .filter(|ci| ci.connected)
                .map(|ci| ci.toolkit.clone())
                .collect();
            anyhow!(
                "toolkit `{toolkit}` is not connected. Connected toolkits: [{}]",
                connected.join(", ")
            )
        })?;

    // Resolve the live client kind via the mode-aware factory so a
    // direct-mode user can still render the prompt even without a
    // backend session (#1710 Wave 2). Backend mode keeps the existing
    // `fetch_toolkit_actions` round-trip; direct mode skips the
    // refresh (no backend allowlist to consult) and keeps the cached
    // catalogue, mirroring `ComposioListToolsTool`'s short-circuit.
    use crate::openhuman::integrations::composio::client::{
        create_composio_client, ComposioClientKind,
    };
    let client_kind = create_composio_client(config)
        .map_err(|e| anyhow!("composio client unavailable — is the user signed in? ({e})"))?;

    // Refresh the action catalogue for this toolkit at prompt-generation

View on GitHub (pinned to 7491200858)