Skip to content

Address review comments from the Auto PRs - #343140

Merged
Bhavya U (bhavyaus) merged 3 commits into
mainfrom
bhavyau/copilot-fusion-review-fixes
Oct 21, 2026
Merged

Bhavya U (bhavyaus) merged 3 commits into
mainfrom
bhavyau/copilot-fusion-review-fixes

Conversation

@bhavyaus

@bhavyaus Bhavya U (bhavyaus) commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #343107 and #343123 that addresses their open review comments.

From #343123:

  • The model card now sets Copilot Fusion's badge from the saved effort level when it renders the header. Before, the badge was first computed with no effort level and corrected only once the Effort Level control rendered.
  • Model picker, language model provider and chat contribution test fixtures now use the Copilot Fusion name, so the tests match what the agent host sends.

From #343107:

  • An Auto tier the service sends without a displayName gets a local name (e.g. High for hydrafusion) rather than its raw id. The service's name still wins whenever it sends one.
  • A tier without a description gets ''. Otherwise JSON turns the missing value into null before it reaches the picker.
  • The Effort Level control removes its aria-description once no tier is unavailable.

Validation:

  • npm run typecheck-client passed.
  • npm run eslint on the changed files passed.
  • ./scripts/test.sh covering copilotAgent, copilotSessionLauncher, all modelPicker suites, agentHostLanguageModelProvider, agentHostChatContribution, stateToProgressAdapter and chatAccessibilityHelp: 2,614 passing.

The details card now takes Copilot Fusion's badge level from the saved
effort level when it renders the header, rather than only once the Effort
Level control renders. Model picker and agent host test fixtures now use
the Copilot Fusion name.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 21, 2026 05:43
A tier the service sends without a name now gets its local name rather than
its raw id, and one without a description gets an empty description rather
than one that reaches the picker as null. The Effort Level control also
drops its screen reader description once no tier is unavailable.

Co-authored-by: Copilot <[email protected]>
@bhavyaus Bhavya U (bhavyaus) changed the title Set Copilot Fusion's badge level up front and use its name in tests Address review comments from the Copilot Fusion PRs Oct 21, 2026
@bhavyaus Bhavya U (bhavyaus) changed the title Address review comments from the Copilot Fusion PRs Address review comments from the Auto PRs Oct 21, 2026
@bhavyaus
Bhavya U (bhavyaus) marked this pull request as ready for review October 21, 2026 05:59

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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

1 open issue
What changed in this PR

Updates Copilot Fusion presentation to be stable on initial render and aligns test fixtures with the agent host’s “Copilot Fusion” naming.

Changes:

  • Initialize the model card’s routing badge tier from the saved Effort Level before the control renders.
  • Clear stale aria-description when options become available again.
  • Rename “Fusion” to “Copilot Fusion” across relevant model picker and agent host tests.
File Description
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerCard.ts Sets initial badge tier from saved effort and removes aria-description when no longer needed.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerTelemetry.test.ts Updates fixtures/expectations to use “Copilot Fusion”.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.test.ts Updates DOM lookups and expectations to use “Copilot Fusion”.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerCard.test.ts Extends accessibility test to validate aria-description is removed when available.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerActionItem.test.ts Updates label expectations to “Copilot Fusion”.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​agentSessions/​agentHostLanguageModelProvider.test.ts Updates model name expectation to “Copilot Fusion”.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​agentSessions/​agentHostChatContribution.test.ts Updates footer text expectations to “Copilot Fusion”.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotAgent.ts Uses local labels when provider tier displayName is missing; guards missing descriptions.
src/​vs/​platform/​agentHost/​test/​node/​copilotAgent.test.ts Adjusts fixture to cover missing displayName/description cases.

Review effort: Lite

@bhavyaus
Bhavya U (bhavyaus) requested review from Dmitriy Vasyura (dmitrivMS) and a balanced review from Copilot October 21, 2026 06:03
@bhavyaus
Bhavya U (bhavyaus) enabled auto-merge (squash) October 21, 2026 06:13

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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

2 open issues
1 resolved since last review

Review effort: Lite

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