Skip to content

Conversation

@benibenj
Copy link
Collaborator

Copilot Generated Description: Adjust the cloud picker alignment to match the layout of other pickers and update the icon for the default agent. Additionally, include a description for model items indicating their billing multiplier.

microsoft/vscode#291526

Copilot AI review requested due to automatic review settings January 29, 2026 09:41
@benibenj benibenj self-assigned this Jan 29, 2026
@benibenj benibenj enabled auto-merge January 29, 2026 09:43
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 29, 2026
Copy link
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 pull request aligns the cloud picker's UI with other pickers in the extension by standardizing the default agent icon and adding billing information to model selections.

Changes:

  • Updated the default custom agent icon from 'file-text' to 'agent' and removed its description field to match the partner agent picker styling
  • Added billing multiplier descriptions (e.g., "2x") to model items to help users understand cost implications

const modelItems: vscode.ChatSessionProviderOptionItem[] = models.value.map(model => ({
id: model.id,
name: model.name,
description: `${model.billing.multiplier}x`,
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

The billing.multiplier property is accessed without optional chaining, which could cause a runtime error if the billing object is undefined or null. In a similar location (src/extension/agents/copilotcli/node/copilotCli.ts:162), the same property is accessed with optional chaining: model.billing?.multiplier. Consider using the same pattern here for consistency and safety.

Suggested change
description: `${model.billing.multiplier}x`,
description: `${model.billing?.multiplier}x`,

Copilot uses AI. Check for mistakes.
@benibenj benibenj added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main with commit f296fb7 Jan 29, 2026
25 checks passed
@benibenj benibenj deleted the benibenj/selective-kiwi branch January 29, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants