Skip to content

fix(doctor): avoid false unknown provider for kimi-coding-cn#15583

Closed
VinVC wants to merge 3 commits into
NousResearch:mainfrom
VinVC:fix-doctor-kimi-coding-cn
Closed

fix(doctor): avoid false unknown provider for kimi-coding-cn#15583
VinVC wants to merge 3 commits into
NousResearch:mainfrom
VinVC:fix-doctor-kimi-coding-cn

Conversation

@VinVC

@VinVC VinVC commented Apr 25, 2026

Copy link
Copy Markdown

Summary

  • keep exact Hermes provider IDs valid during hermes doctor validation
  • avoid resolving first-class provider IDs like kimi-coding-cn through the shared models.dev alias table before checking known providers
  • add regression coverage for the kimi-coding-cn provider diagnostic path

Why

kimi-coding-cn is a valid Hermes provider, but hermes doctor resolves it through resolve_provider_full() before validation. The shared alias table maps kimi-coding-cn to the models.dev provider id kimi-for-coding, which is not in doctor's known provider set, so doctor reports a false unknown-provider issue even though the configured provider is supported.

This is separate from #9734, which handles KIMI_CN_API_KEY detection and the Kimi China connectivity probe.

Tests

  • /home/bot/.hermes/hermes-agent/venv/bin/python -m pytest tests/hermes_cli/test_doctor.py -q
  • 23 passed, 2 warnings

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard provider/kimi Kimi / Moonshot labels Apr 25, 2026
VinVC added 2 commits May 3, 2026 09:52
- Rebased on upstream/main to resolve conflicts
- Added test_run_doctor_accepts_kimi_coding_cn_provider test
- All 30 tests pass
@VinVC

VinVC commented May 3, 2026

Copy link
Copy Markdown
Author

Hi @alt-glitch — merge conflicts have been resolved. This is ready for review when you have a chance. Thanks!

@teknium1

teknium1 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Salvaged via #19734 onto current main. The underlying fix (Hermes provider IDs bypass the models.dev alias table in doctor validation) had been applied to main independently; your PR's regression test is preserved so that fix stays covered. Thanks @VinVC!

@teknium1 teknium1 closed this May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have provider/kimi Kimi / Moonshot type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants