{"record":{"id":"62366a8b688c2f37","repo":"tinyhumansai/openhuman","slug":"toolkit-toolkit-is-not-connected-connected-to","errorCode":null,"errorMessage":"toolkit `{toolkit}` is not connected. Connected toolkits: [{}]","messagePattern":"toolkit `(.+?)` is not connected\\. Connected toolkits: \\[(.+?)\\]","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/debug/mod.rs","lineNumber":272,"sourceCode":"/// dynamic prompt builder.\nasync fn render_integrations_agent(config: &Config, toolkit: &str) -> Result<DumpedPrompt> {\n    let mut agent = Agent::from_config_for_agent(config, INTEGRATIONS_AGENT_ID)\n        .with_context(|| format!(\"building integrations_agent session for `{toolkit}`\"))?;\n    agent.fetch_connected_integrations().await;\n\n    let mut integration = agent\n        .connected_integrations()\n        .iter()\n        .find(|ci| ci.connected && ci.toolkit.eq_ignore_ascii_case(toolkit))\n        .cloned()\n        .ok_or_else(|| {\n            let connected: Vec<String> = agent\n                .connected_integrations()\n                .iter()\n                .filter(|ci| ci.connected)\n                .map(|ci| ci.toolkit.clone())\n                .collect();\n            anyhow!(\n                \"toolkit `{toolkit}` is not connected. Connected toolkits: [{}]\",\n                connected.join(\", \")\n            )\n        })?;\n\n    // Resolve the live client kind via the mode-aware factory so a\n    // direct-mode user can still render the prompt even without a\n    // backend session (#1710 Wave 2). Backend mode keeps the existing\n    // `fetch_toolkit_actions` round-trip; direct mode skips the\n    // refresh (no backend allowlist to consult) and keeps the cached\n    // catalogue, mirroring `ComposioListToolsTool`'s short-circuit.\n    use crate::openhuman::integrations::composio::client::{\n        create_composio_client, ComposioClientKind,\n    };\n    let client_kind = create_composio_client(config)\n        .map_err(|e| anyhow!(\"composio client unavailable — is the user signed in? ({e})\"))?;\n\n    // Refresh the action catalogue for this toolkit at prompt-generation","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/debug/mod.rs#L254-L290","documentation":"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.","triggerScenarios":"Thrown at src/openhuman/agent/debug/mod.rs:272 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pick a toolkit from the `Connected toolkits: [...]` list in the message.","Connect the wanted toolkit first (via the composio/auth flow), then re-run the dump.","Check spelling/case — matching is case-insensitive but the slug must still be exact."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}