#9024: Fix/Moonshot Provider Issue with kimi-k2-thinking Model Role Mapping #9018
cli
scripts
docker
agents
stale
Cluster:
Kimi Model Enhancements
Changes:
- Added kimi-k2-thinking and kimi-k2-thinking-turbo models to the Moonshot provider configuration
- Set reasoning: true for these models to properly handle role mapping
- This fixes the role mapping issue that prevented thinking models from working with the provider
Issue fixed: #9018
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Adds Moonshot thinking model support by registering `kimi-k2-thinking` and `kimi-k2-thinking-turbo` in the Moonshot provider config and marking them as `reasoning: true`, addressing the role-mapping failure for thinking models.
However, the Moonshot provider registry is now inconsistent with the repository’s Moonshot docs/UI model list: `kimi-k2-0905-preview` and `kimi-k2-turbo-preview` are documented/listed but not registered in `buildMoonshotProvider()`, so selecting those models will fail at runtime until they’re added to the provider config.
<h3>Confidence Score: 3/5</h3>
- This PR is close to mergeable, but model registration is inconsistent with docs/UI and will break documented model selection.
- The change to add reasoning-enabled Moonshot thinking models is straightforward, but the provider registry omits two models that are referenced elsewhere in the repo (docs/UI). That mismatch will cause runtime model resolution failures for users following the documented configuration.
- src/agents/models-config.providers.ts
<!-- greptile_other_comments_section -->
<sub>(4/5) You can add custom instructions or style guidelines for the agent [here](https://app.greptile.com/review/github)!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#6454: fix: enable reasoning flag for Kimi K2.5 in Moonshot provider (#6451)
by coupclawbot · 2026-02-01
87.0%
#21911: Enable `reasoning: true` for Kimi models
by ighostych · 2026-02-20
84.7%
#5947: Feature/kimi reasoning support
by zzjj7000 · 2026-02-01
84.3%
#6960: feat: Add kimi-coding provider support
by YYW0228 · 2026-02-02
81.3%
#4459: fix: enable image input for Kimi K2.5 and refresh stale config mode...
by manikv12 · 2026-01-30
80.7%
#14187: fix: add Moonshot AI to non-standard provider detection
by shad0wca7 · 2026-02-11
79.0%
#19281: fix: set supportsDeveloperRole false as default for moonshot provider
by MisterGuy420 · 2026-02-17
78.9%
#22194: fix(agent) Moonshot/Kimi kimi-k2.5 returns ROLE_UNSPECIFIED
by ShengFuC · 2026-02-20
77.8%
#12063: feat: add Moonshot (Kimi K2.5) native video understanding provider
by xiaoyaner0201 · 2026-02-08
77.0%
#7570: fix: allow models from providers with auth profiles configured
by DonSqualo · 2026-02-03
77.0%