Skip to content

Fix cache break hint when models are unavailable - #325444

Merged
Bhavya U (bhavyaus) merged 1 commit into
microsoft:mainfrom
bhavyaus:dev/bhavyau/fix-cache-break-hint-signed-out
Jul 11, 2026
Merged

Fix cache break hint when models are unavailable#325444
Bhavya U (bhavyaus) merged 1 commit into
microsoft:mainfrom
bhavyaus:dev/bhavyau/fix-cache-break-hint-signed-out

Conversation

@bhavyaus

Copy link
Copy Markdown
Collaborator

Fixes #325185.

Copilot AI review requested due to automatic review settings July 11, 2026 19:42
@bhavyaus
Bhavya U (bhavyaus) enabled auto-merge (squash) July 11, 2026 19:44

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

Suppresses cache-break warnings when the model picker has no usable models.

Changes:

  • Centralizes model availability state.
  • Adds cache-warning visibility logic and regression tests.
Show a summary per file
File Description
chatModelPicker.ts Uses availability state to suppress irrelevant warnings.
chatModelSelectionLogic.ts Adds cache-warning visibility helper.
chatModelSelectionLogic.test.ts Tests warning suppression conditions.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Medium

Comment on lines +1558 to 1562
// A "Models" placeholder (no badge) beats a dead-end label while unavailable — the hover and
// dropdown carry the Restricted Mode explanation and the Trust Workspace / Sign In action.
// "Activating..." is transient while models load after a Trust grant; "No models available"
// is the genuinely empty state (e.g. an agent-host session with no Auto fallback).
const modelLabel = unavailable
@bhavyaus
Bhavya U (bhavyaus) merged commit d40305c into microsoft:main Jul 11, 2026
29 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.129.0 milestone Jul 11, 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.

Cache break warning shows when not signed in

3 participants