tinyhumansai/openhuman · error · anyhow::Error
composio client unavailable — is the user signed in?
Error message
composio client unavailable — is the user signed in? ({e}) What it means
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.
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.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/openhuman/agent/debug/mod.rs:288 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/82a0689dbc3f2f4d.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/debug/mod.rs:288
.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
// time so the dump reflects the **current** backend state rather
// than the session-start bulk fetch's snapshot (which can return an
// empty list for some toolkits even when the per-toolkit endpoint
// returns actions). Mirrors subagent_runner's typed-mode fallback:
// an empty fresh list or a network error keeps the cached catalogue
// rather than blanking it.
match &client_kind {
ComposioClientKind::Backend(composio_client) => {
match crate::openhuman::integrations::composio::fetch_toolkit_actions(
composio_client,
&integration.toolkit,
None,
)
.await
{
Ok(actions) if !actions.is_empty() => {View on GitHub (pinned to 7491200858)