Skip to content

fix(acp): pass fallback_providers to AIAgent (parity with CLI)#18460

Open
xyiy001 wants to merge 1 commit into
NousResearch:mainfrom
xyiy001:fix/acp-aiagent-fallback-model
Open

fix(acp): pass fallback_providers to AIAgent (parity with CLI)#18460
xyiy001 wants to merge 1 commit into
NousResearch:mainfrom
xyiy001:fix/acp-aiagent-fallback-model

Conversation

@xyiy001

@xyiy001 xyiy001 commented May 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The ACP adapter built AIAgent without wiring the configured provider fallback chain, so clients (Obsidian ACP, VS Code, JetBrains, Zed, etc.) never failed over when the primary model errored. CLI and gateway already pass this via fallback_model / fallback_providers.

This change reads fallback_providers (and legacy fallback_model) from the loaded Hermes config, applies the same dict→list normalization as HermesCLI, and passes the result as fallback_model= into AIAgent.

Closes #18452

Test plan

  • pytest tests/acp/test_session.py::TestMakeAgentPassesFallbackProviders -q -o addopts=

ACP adapter previously omitted the configured provider fallback chain, so editors using ACP never failed over like CLI/Gateway.

Align config normalization with HermesCLI (fallback_providers and legacy fallback_model dict).
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/acp Agent Communication Protocol adapter labels May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/acp Agent Communication Protocol adapter P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ACP adapter does not pass fallback_providers to AIAgent — model failover broken in editor integrations

2 participants