Skip to content

Reapply "Fix UBB model details in Copilot CLI (#316452)" (#316698)#318399

Merged
pwang347 merged 1 commit into
mainfrom
pawang/revert-lramos15/competent-piranha
May 26, 2026
Merged

Reapply "Fix UBB model details in Copilot CLI (#316452)" (#316698)#318399
pwang347 merged 1 commit into
mainfrom
pawang/revert-lramos15/competent-piranha

Conversation

@pwang347
Copy link
Copy Markdown
Member

@pwang347 pwang347 commented May 26, 2026

This reverts commit aa21abc.

Fixes #315801

image

Copilot AI review requested due to automatic review settings May 26, 2026 18:04
@pwang347 pwang347 marked this pull request as ready for review May 26, 2026 18:06
@pwang347 pwang347 added the ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch label May 26, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR re-applies previously reverted changes that enrich Copilot CLI-provided model metadata (price category + token costs) and improves how price categories are surfaced for accessibility in the chat model picker.

Changes:

  • Extend Copilot CLI model info to include priceCategory and normalized inputCost/outputCost/cacheCost, and plumb these into LanguageModelChatInformation.
  • Add normalization logic for Copilot CLI SDK token pricing into “AICs per 1M tokens”.
  • Improve the chat model picker’s screen-reader price-category labeling by handling empty/undefined categories and providing a fallback label for unknown categories.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Adjusts price-category labeling used for ARIA descriptions in the model picker.
extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotCli.ts Adds pricing/category fields to Copilot CLI model metadata and normalizes SDK token pricing for UI consumption.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 3

@vs-code-engineering
Copy link
Copy Markdown
Contributor

This PR will be automatically cherry-picked to release/1.122 when merged.

@pwang347
Copy link
Copy Markdown
Member Author

CC @lramos15 on Copilot feedback. Seems valid but not urgent.

@pwang347 pwang347 enabled auto-merge (squash) May 26, 2026 18:16
@pwang347 pwang347 merged commit aeba1b9 into main May 26, 2026
26 checks passed
@pwang347 pwang347 deleted the pawang/revert-lramos15/competent-piranha branch May 26, 2026 18:34
@vs-code-engineering vs-code-engineering Bot added release-cherry-pick Automated cherry-pick between release and main branches and removed ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch labels May 26, 2026
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-cherry-pick Automated cherry-pick between release and main branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copilot CLI doesn't show UBB pricing

4 participants