Skip to content

Comments

do not show add models and handle anonymous users#296603

Merged
sandy081 merged 1 commit intomainfrom
sandy081/rubber-sparrow
Feb 20, 2026
Merged

do not show add models and handle anonymous users#296603
sandy081 merged 1 commit intomainfrom
sandy081/rubber-sparrow

Conversation

@sandy081
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 20, 2026 19:56
@sandy081 sandy081 enabled auto-merge (squash) February 20, 2026 19:56
@sandy081 sandy081 self-assigned this Feb 20, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 20, 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 PR removes the "Add Language Models" / "Add Premium Models" UI section from the chat model picker dropdown and improves handling for anonymous users. The changes focus on streamlining the model picker by removing the bottom "Add Models" action and instead showing upgrade prompts inline on unavailable models (but only on the first one to avoid repetition).

Changes:

  • Removed the "Add Models" section at the bottom of the model picker dropdown in buildModelPickerItems
  • Added logic to show upgrade action links only on the first unavailable model (not subsequent ones) for better UX
  • Removed isProUser parameter from buildModelPickerItems and instead compute it internally from entitlement service
  • Registered a new DEFAULT_ACCOUNT_SIGN_IN_COMMAND action for signing in users
  • Updated all tests to use the new function signature and added tests for anonymous user behavior

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/services/accounts/browser/defaultAccount.ts Registers new sign-in command action
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Removes "Add Models" section, adds logic to show upgrade link only on first unavailable model, refactors to compute isPro internally
src/vs/workbench/contrib/chat/test/browser/widget/input/chatModelPicker.test.ts Updates test helper and all tests for new function signature, adds tests for anonymous user behavior

@sandy081 sandy081 merged commit 2df0c0e into main Feb 20, 2026
23 checks passed
@sandy081 sandy081 deleted the sandy081/rubber-sparrow branch February 20, 2026 20:19
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.

2 participants