Repository navigation
feat(vscode): migrate the models settings to v2 - #15594
Conversation
|
➖ v2 migration progress: 6.4% → 6.4% (0 done, 0 total, 0 dropped; 626/9819 cells) Placement: 0 new marked lines in shared files, 0 new Ratchets: 27 core-internal imports (base 27); shared patches by rung 35 seam, 25 patch (base 35 seam, 25 patch). No change to the progress map. |
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
The incremental commit One part of the previous finding remains. The optimistic value is still present in Files Reviewed (1 file)
Fix these issues in Kilo Cloud Previous Review Summaries (5 snapshots, latest commit a34cf39)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit a34cf39)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (3 files)
The variant-dropping fix and the scope-aware set/unset remain in place, and the out-of-scope search keys are now in Fix these issues in Kilo Cloud Previous review (commit 709704c)Status: No Issues Found | Recommendation: Merge The incremental commit Files Reviewed (7 files)
Previous review (commit f243e2d)Status: 1 Issue Found | Recommendation: Address before merge The follow-up commit Overview
Issue Details (click to expand)WARNING
Files Reviewed (3 files)
Fix these issues in Kilo Cloud Previous review (commit 65fbe46)Status: No Issues Found | Recommendation: Merge The follow-up commit Files Reviewed (2 files)
Previous review (commit a684269)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (4 files)
Reviewed by deepseek-flash-latest · Input: 82.4K · Output: 18.9K · Cached: 699.6K Review guidance: REVIEW.md from base branch |
… in the Models rows
Migrate the Models settings tab to the v2 extension
What Problem This Solves
The native v2 VS Code extension had a placeholder Models tab. This ports the v1 Models settings so users can pick the default model, the small (title) model, the compaction model, one model per agent, and the prompt-training privacy switch, all against the v2 configuration.
Why This Change Was Made
v2 stores models in the Kilo v2 config, not in v1 keys. The top-level
modelaccepts theConfigModel.Selectionform ({ providerID, model, variant? }orprovider/model#variant). The v1small_modelandagent.compaction.modelnormalize to the agentstitleandcompactionentries underagents.<id>.model. The prompt-training switch is the Kilo-only top-level keyhide_prompt_training_models, which is not part of the core schema and is read from the raw config files. The tab writes through the shareduseSettingsConfig()layer, which applies changes immediately (no save bar).User Impact
The Models tab matches the v1 layout, labels, and control order:
Not set (use server default), andUse chat modelfor compaction). No separate variant control is shown, as in v1.Parity table
model(ConfigModel.Selection)agents.title.modelUse chat modelwhen empty)agents.compaction.modelagents.<id>.modelhide_prompt_training_models(read withraw())Out of scope
agentsentries cover the selectable agents only.The out-of-scope i18n keys are added to
EXCLUDED_KEYSinsettings-search.tsso the settings search does not surface rows this tab does not render.Evidence
Screenshots (v1 before from the built main checkout, v2 after from this branch):
Before (v1), full tab and model picker:


After (v2), full tab and model picker:


Automated checks (in
packages/kilo-vscode):bun typecheck: pass.bun test: pass, with a focused test for the selection mapping inmodels-selection.ts.bun run lint: 0 warnings, 0 errors.Self-test (isolated v2 profile):
{"model":{"providerID":"kilo","model":"cohere/north-mini-code:free"}}to the globalkilo2.jsonat once, with no save bar."hide_prompt_training_models": trueat once.hide_prompt_training_modelsto false and addingagents.title.model) updated the switch and the Small Model row in the tab with no reload.Notes
Part of #15589