fix(vscode): show routed model name for auto-routed free sessions - #12000
Merged
Conversation
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by claude-sonnet-5 · Input: 14 · Output: 4.7K · Cached: 274.2K Review guidance: REVIEW.md from base branch |
marius-kilocode
approved these changes
Jul 7, 2026
This was referenced Jul 7, 2026
t7tran
pushed a commit
to t7tran/kilocode
that referenced
this pull request
Aug 14, 2026
…-name fix(vscode): show routed model name for auto-routed free sessions
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.
What
The model usage panel showed just
freeforkilo-auto/freesessions instead of the concrete routed model.Why
The backend usage aggregation prefers the step-finish part's
model.modelID(the concrete routed model, e.g.tencent/hy3:free) over the message tier id, so the webview already receives the right value. ButmodelUsageNameinwebview-ui/src/context/model-usage.tsstripped it incorrectly: its sub-provider prefix rule/^[^:]+:\s*/used\s*(zero-or-more whitespace), so it matched the colon inside the idtencent/hy3:free, removedtencent/hy3:, and left onlyfree.Fix
Change
\s*to\s+so the rule only strips a genuine"Provider: "display-name prefix (always followed by whitespace), not the:freecolon in a model id. This aligns the webview with the CLI'sKiloRoutedModel.displayName, which already uses\s+. The id then flows through the existing provider-prefix strip and displays ashy3:free.Added a regression test for the routed free-variant id.