Connected app tools are unavailable after enabling an external LLM
Summary
After connecting an external LLM provider, connected app tools such as email are not available to the agent, so the agent says it cannot perform connector actions.
Problem
When the user configures an LLM provider and then asks the agent to perform a connected-app action, such as sending an email, the agent responds that it does not have access to email services or the required tools/permissions.
Expected behavior: changing or connecting an LLM provider should not break access to already connected app tools. If the relevant connector is available and has the required scopes, the agent should route the request to the connector tool path after approval.
Actual behavior: the agent behaves as if connector tools are unavailable once the app is running through the connected LLM setup.
Impact: users cannot rely on connected integrations after configuring their preferred LLM provider, which makes both LLM setup and app connections feel broken.
Steps to reproduce:
- Open the OpenHuman desktop app.
- Configure or enable an external LLM provider.
- Ensure an app connector capable of the requested action is connected.
- Ask the agent to perform a connector-backed action, such as sending an email.
- Observe that the agent says it cannot access the service or does not have the needed tools/permissions.
Version / platform: macOS desktop app, screenshot captured May 25, 2026. Exact app version unknown.
Solution (optional)
Check whether the external LLM provider path is receiving the same tool catalog, connector state, approval policy, and routing context as the default model path. The fix likely belongs in the agent routing/tool-surface path rather than the connector UI alone.
Acceptance criteria
- [ ] Repro gone — Connecting or switching to an external LLM provider does not remove access to connected app tools.
- [ ] Tool surface preserved — The agent receives the correct connector/tool catalog regardless of selected LLM provider.
- [ ] Accurate failure state — If the connector is missing scopes or disconnected, the agent explains the real issue instead of saying tools are generally unavailable.
- [ ] Approval preserved — Write actions still require explicit user approval before execution.
- [ ] Regression safety — Add E2E or integration coverage for external LLM provider + connected app action routing.
- [ ] Diff coverage ≥ 80% — the fix PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by
.github/workflows/coverage.yml).
Related
- Screenshot:
Screenshot 2026-05-25 at 11.16.51 AM.png - Related connector testing umbrella: #2305
Additional repro evidence:
When OpenAI is enabled as the LLM provider and chat uses custom routing, connector-backed actions still fail. In this case, the user asks the agent to fetch the latest emails. The agent responds that the Gmail connection is missing read permissions and asks the user to reconnect Gmail, even though the failure is being observed specifically after configuring the LLM provider/custom routing path.
Observed setup:
- OpenAI provider enabled.
- Chat workload set to custom routing.
- Chat route shows OpenAI /
gpt-4.1-2025-04-14. - User asks for a Gmail read action.
- Agent responds that Gmail read permissions are missing and does not fetch the messages.
Expected behavior:
- Enabling OpenAI/Anthropic/OpenRouter/custom LLM routing should not break or hide connected app tools.
- If Gmail truly lacks scopes, the app should prove that from connector state and surface a reconnect-with-scopes flow.
- If Gmail has scopes, the agent should route to the Gmail read/list tool path regardless of selected LLM provider.
This should be debugged as part of the LLM-provider-to-tool-surface integration path, not only as a Gmail UI issue.
Screenshots:
Screenshot 2026-05-25 at 2.43.02 PM.pngScreenshot 2026-05-25 at 2.44.29 PM.png