{"record":{"id":"82a0689dbc3f2f4d","repo":"tinyhumansai/openhuman","slug":"composio-client-unavailable-is-the-user-signed-i","errorCode":null,"errorMessage":"composio client unavailable — is the user signed in? ({e})","messagePattern":"composio client unavailable — is the user signed in\\? \\((.+?)\\)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/debug/mod.rs","lineNumber":288,"sourceCode":"                .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\n    // time so the dump reflects the **current** backend state rather\n    // than the session-start bulk fetch's snapshot (which can return an\n    // empty list for some toolkits even when the per-toolkit endpoint\n    // returns actions). Mirrors subagent_runner's typed-mode fallback:\n    // an empty fresh list or a network error keeps the cached catalogue\n    // rather than blanking it.\n    match &client_kind {\n        ComposioClientKind::Backend(composio_client) => {\n            match crate::openhuman::integrations::composio::fetch_toolkit_actions(\n                composio_client,\n                &integration.toolkit,\n                None,\n            )\n            .await\n            {\n                Ok(actions) if !actions.is_empty() => {","sourceCodeStart":270,"sourceCodeEnd":306,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/debug/mod.rs#L270-L306","documentation":"Client-construction failure in `render_integrations_agent`. The mode-aware composio factory (mode-aware so direct-mode users can render without a backend session) failed to produce a client; the underlying error {e} is wrapped with the hint that the usual cause is the user not being signed in. The dump aborts rather than rendering a prompt with a dead toolkit client.","triggerScenarios":"Thrown at src/openhuman/agent/debug/mod.rs:288 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Sign in to the backend, then retry the prompt dump.","Read the {e} cause — it distinguishes auth failure from transport/config failure.","In direct mode, verify local composio credentials/config; in backend mode, verify the session token is valid and unexpired."],"exampleFix":null,"handlingStrategy":"try-catch","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"}