Skip to content

Fix comparison model picker details - #341601

Merged
Megan Rogge (meganrogge) merged 2 commits into
mainfrom
agents/triage-339373
Oct 14, 2026
Merged

Megan Rogge (meganrogge) merged 2 commits into
mainfrom
agents/triage-339373

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Summary

  • preserve the normal model badges, effective configuration readout, Details action, tooltip, and accessibility metadata while selecting models for a comparison
  • describe a committed comparison in the composer hover instead of showing one underlying model
  • add focused browser regression coverage for both behaviors

Fixes #339904
Fixes #339905

Testing

  • npm run compile-client
  • npm run test-browser-no-install -- --run src/vs/workbench/contrib/chat/test/browser/widget/input/modelPicker/modelPickerTabbedWidget.test.ts --run src/vs/workbench/contrib/chat/test/browser/widget/input/modelPicker/modelPickerActionItem.test.ts --browser chromium
  • targeted ESLint on the four changed files

Copilot AI balanced review requested due to automatic review settings October 14, 2026 18:11
@meganrogge Megan Rogge (meganrogge) added this to the 1.143.0 milestone Oct 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Editing a noncurrent model through comparison Details clears comparison state and selects a single model.

1 open finding
What changed in this PR

Restores normal model details during comparison selection and makes the composer hover describe the committed comparison.

Changes:

  • Reuses model badges, configuration readouts, Details actions, and accessibility metadata.
  • Shows the comparison summary in the composer hover.
  • Adds focused browser regression coverage.
File Description
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.test.ts Checks comparison row details and accessibility metadata.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerActionItem.test.ts Tests the committed comparison hover.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.ts Shares detailed row rendering with comparison selection.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerActionItem.ts Uses the workflow summary in hover text.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Preserve model badges, effective configuration details, and accessibility metadata while configuring comparison workflows. Describe committed comparisons in the composer hover instead of showing one underlying model.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 5f2f1f6e-e1d6-4baa-a0ac-d60c48f5edd2
Allow comparison Details to save model configuration without selecting that model as the chat's single model. Keep direct model and speed-variant choices using the existing selection behavior.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 5f2f1f6e-e1d6-4baa-a0ac-d60c48f5edd2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tooltip is wrong on 3 models pill Compare model picker loses context picker, thinking effort picker, and discount badges

4 participants