Skip to content

fix(acp): honor configured LLM provider - #126

Open
dvd233 wants to merge 1 commit into
MiniMax-AI:mainfrom
dvd233:fix/acp-provider-config
Open

dvd233 wants to merge 1 commit into
MiniMax-AI:mainfrom
dvd233:fix/acp-provider-config

Conversation

@dvd233

@dvd233 dvd233 commented Sep 22, 2026 •

Copy link
Copy Markdown

Summary

The ACP server currently constructs LLMClient without passing config.llm.provider, so the wrapper falls back to Anthropic even when the configuration selects OpenAI. This makes OpenAI-compatible endpoints fail through mini-agent-acp while the CLI honors the same configuration.

This change resolves the configured provider to LLMProvider and passes it into the ACP client. It also adds a regression test that verifies the provider reaches the client factory.

Validation

  • uv run pytest tests/test_acp.py -q -k 'test_acp_uses_configured_provider or test_acp_turn_executes_tool'
  • uv run python -m compileall -q mini_agent tests/test_acp.py
  • git diff --check

Related to #120


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant