Skip to content

Model picker: clearer Restricted Mode copy and suppress search - #323201

Merged
Ross Wollman (rwoll) merged 2 commits into
mainfrom
model-picker-restricted-copy
Jun 26, 2026
Merged

Model picker: clearer Restricted Mode copy and suppress search#323201
Ross Wollman (rwoll) merged 2 commits into
mainfrom
model-picker-restricted-copy

Conversation

@rwoll

@rwoll Ross Wollman (rwoll) commented Jun 26, 2026

Copy link
Copy Markdown
Member

UX follow-up to #323183: clearer Restricted Mode model picker copy, and suppress the search field in the unavailable states (nothing to search there).

Screenshot 2026-06-26 at 12 59 58 PM
  • Button: "Pick Model" → "Models"
  • Header: → "Models unavailable while in Restricted mode"
  • Trust action: → "Trust Workspace to enable models..."
  • Hide the dropdown search filter while Restricted / setup-required

Addresses feedback from https://vscodeteam.slack.com/archives/C1C2M1KEZ/p1782496657211199

Relates to #322564.

Reword the Restricted Mode model picker so the button, header, and action
read as a coherent set, and hide the search field in the unavailable states
(only a header + Trust/Sign In action are shown, so there is nothing to
search).

- Button: "Pick Model" -> "Models"
- Header: "Models Unavailable in Restricted Mode" -> "Models unavailable while in Restricted mode"
- Action: "Trust Workspace..." -> "Trust Workspace to enable models..."
- Suppress the dropdown search filter while restricted / setup-required

Addresses feedback from https://vscodeteam.slack.com/archives/C1C2M1KEZ/p1782496657211199

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 26, 2026 19:58

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.

Pull request overview

UX follow-up to the chat model picker’s Restricted Mode and setup-required states: updates the displayed copy to more clearly explain why models are unavailable, and hides the search/filter UI when there’s nothing meaningful to search.

Changes:

  • Updates Restricted Mode header/action/hover copy (e.g. “Models unavailable while in Restricted mode”, “Trust Workspace to enable models...”).
  • Suppresses the model-picker search/filter row when the picker is in Restricted Mode or setup-required state.
  • Updates unit test expectations for the new Restricted Mode header label.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/browser/widget/input/chatModelPicker.test.ts Updates test assertion to match the new Restricted Mode header text.
src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.ts Updates hover copy for Restricted Mode / setup-required messaging.
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Updates Restricted Mode header/action copy and hides the filter/search UI in unavailable states; updates placeholder label.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Low

Comment thread src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.ts Outdated
Comment thread src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Outdated
roblourens
roblourens previously approved these changes Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copilot comments on a11y

Address PR review: the visible picker label is now 'Models', but the
hover tooltip and aria-labels still read 'Pick Model'. Name the control
'Models' in both (reusing the shared label key) so screen-reader and
hover copy match the visible UI. Reword the Restricted Mode suffixes to
avoid a 'Models • Models' / 'Models, models' stutter. Retire the now-unused
'Pick Model' string and refresh stale comments referencing it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rwoll
Ross Wollman (rwoll) merged commit 0a10c7c into main Jun 26, 2026
29 checks passed
@rwoll
Ross Wollman (rwoll) deleted the model-picker-restricted-copy branch June 26, 2026 20:53
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 26, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Aug 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants