feat(tui): allow shorthand aliases for managed Kimi Code models in /model - #2282
Open
bowenliang123 wants to merge 3 commits into
Open
feat(tui): allow shorthand aliases for managed Kimi Code models in /model#2282bowenliang123 wants to merge 3 commits into
bowenliang123 wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: cbb02c1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
bowenliang123
force-pushed
the
feat/model-alias-shorthand
branch
from
July 28, 2026 02:45
3efdf36 to
cbb02c1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
No prior issue — this is a small UX convenience improvement.
Problem
In the TUI,
/modelaccepts an alias as its argument, but the model picker shows human-readable names such as K3 under the Kimi Code provider. The actual configured alias iskimi-code/k3, so typing/model k3(or/model K3) currently fails withUnknown model alias: k3. Users either have to use the interactive picker or remember the fullkimi-code/<id>key.What changed
In
handleModelCommand, when the exact alias is not found and the input contains no/, the command now falls back tokimi-code/<input>. This lets users open the model picker for managed Kimi Code models with a short, intuitive name.k3would not be shadowed./get the fallback.kimi-tui-message-flow.test.tscovering the shorthand resolution.@moonshot-ai/kimi-code.Usage comparison
/model k3→Unknown model alias: k3/model k3→ opens picker forkimi-code/k3/model K3→Unknown model alias: K3/model K3→Unknown model alias: K3(still case-sensitive; use the lowercase model id)/model kimi-code/k3→ opens picker/model kimi-code/k3→ still opens picker/model kimi-for-coding→ Unknown/model kimi-for-coding→ opens picker forkimi-code/kimi-for-codingChecklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.