Skip to content

Remove visibility controls for models in the model configuration window#314598

Merged
vritant24 merged 8 commits into
mainfrom
dev/vritant24/no-vis-model-picker
May 6, 2026
Merged

Remove visibility controls for models in the model configuration window#314598
vritant24 merged 8 commits into
mainfrom
dev/vritant24/no-vis-model-picker

Conversation

@vritant24
Copy link
Copy Markdown
Member

Today:

  • The model picker has a search option that can be used to quickly find models
  • the most recently used models are surfaced to the top
    • can be quickly searched by typing /models in the chat window

Being able to toggle visibility is no longer necessary with those available.
Users can also run into an interesting problem where searching for models don't show up because they are hidden in the chat window model picker, but are searchable in the model configuration window.

This PR removes controlling the visibility of models entirely, allowing all models to be available in the model picker.

Copilot AI review requested due to automatic review settings May 6, 2026 00:16
}


/** Gutter column styling **/
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

removed the gutter as it had the visibility controls, which are no longer needed

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 removes the user-facing “visibility” (hide/show) control for language models from the model configuration/management UI and the underlying storage/preferences plumbing, so that the chat model picker no longer depends on per-model hidden state.

Changes:

  • Removed the model picker visibility preference API and storage handling from LanguageModelsService.
  • Simplified the chat “Manage Models” UI by dropping visibility filters, visibility grouping, and hide/show actions.
  • Updated/removed related tests and adjusted layout/styling for the management table after dropping the visibility gutter column.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/common/languageModels.ts Updates the null service stub to match the removed visibility preference API.
src/vs/workbench/contrib/chat/test/common/languageModels.test.ts Removes tests that validated model-picker visibility preference storage behavior; updates event wiring in remaining tests.
src/vs/workbench/contrib/chat/test/browser/chatManagement/chatModelsWidget.test.ts Updates widget hover tests to account for removal of visible on ILanguageModel.
src/vs/workbench/contrib/chat/test/browser/chatManagement/chatModelsViewModel.test.ts Removes tests for visibility filtering/grouping and visibility mutation APIs.
src/vs/workbench/contrib/chat/common/languageModels.ts Removes visibility preference persistence + overrides, and stops activating vendors based on stored picker preferences.
src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css Adjusts table padding/column targeting after removing the gutter/visibility column; removes hidden-row styling.
src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.ts Removes visibility filters/actions and gutter renderer; moves collapse UI into the name column; updates ARIA labeling accordingly.
src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.ts Removes the visible model field, visibility filtering/grouping, and visibility mutation methods.
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts Updates the models section description text to remove “Select models for use…” wording.

Copilot's findings

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

Comment thread src/vs/workbench/contrib/chat/common/languageModels.ts
vijayupadya
vijayupadya previously approved these changes May 6, 2026
@vritant24 vritant24 changed the title Remove viability control for models in the model configuration window Remove visibility controls for models in the model configuration window May 6, 2026
@vritant24 vritant24 marked this pull request as ready for review May 6, 2026 12:59
@vritant24 vritant24 requested a review from vijayupadya May 6, 2026 15:01
@vritant24 vritant24 enabled auto-merge May 6, 2026 15:17
@vritant24 vritant24 merged commit 1b3cb2b into main May 6, 2026
26 checks passed
@vritant24 vritant24 deleted the dev/vritant24/no-vis-model-picker branch May 6, 2026 15:34
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 6, 2026
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