Skip to content

Drop Fusion's routed High path and the tests for it - #343147

Merged
Bhavya U (bhavyaus) merged 1 commit into
mainfrom
bhavyau/copilot-fusion-test-cleanup
Oct 21, 2026
Merged

Bhavya U (bhavyaus) merged 1 commit into
mainfrom
bhavyau/copilot-fusion-test-cleanup

Conversation

@bhavyaus

Copy link
Copy Markdown
Collaborator

Follows #343140.

The agent host only presents Auto as Copilot Fusion with the service's tiers (balanceUsesHydraFusion: false). It never uses the older shape, in which Fusion's High routed to HydraFusion. This PR removes the picker's support for that older shape and the tests that covered it:

  • Removed code: the balanceUsesHydraFusion branches in getFusionTierLabel, _normalizeFusionHigh and the tabbed widget's HydraFusion filter, plus the intelligence fallback in _getHydraFusionTier.
  • Deleted tests (3):
    • "Fusion offers Standard, High, and Max, with High using HydraFusion only when routed there"
    • "a chat moves between HydraFusion and Fusion's High as Fusion routes High"
    • "normalizing a matching HydraFusion selection does not persist it again"
  • Tests moved to the service-tier shape: the shared createFusionModel fixture, the presentation label test, the read-only tier test (Max is now one of the read-only tiers), the Fusion footer test and the telemetry input test.
  • Bug fix: a chat on HydraFusion now moves to Copilot Fusion only when the picker offers Fusion, not when Fusion needs a newer VS Code. The service-tier fixture exposed this, and it now shares the "can the picker offer this model" check with _getRoutingTier.

Also from the gpt-6.1-sol review of #343140:

  • Corrects the comment on how the provider's tier names are shown.
  • Drops an aria-description assertion that could not fail, because the card rebuilds its radio control on every render.

Testing: with chat.copilot.dynamicAutoTiers.enabled on, Copilot Fusion offers Standard, High and Max. Turn it off, choose HydraFusion Max, then turn it back on. The chat shows Copilot Fusion · Max without resetting.

Validation:

  • npm run typecheck-client passed.
  • npm run eslint on the changed files passed.
  • ./scripts/test.sh covering copilotAgent, all modelPicker suites, agentHostLanguageModelProvider, agentHostChatContribution and chatAccessibilityHelp: 2,140 passing (after rebasing onto main).
  • Verified the scenario above in Code OSS on a staff account. The renderer log showed an equivalent-selection to Fusion and no reset.

The agent host only presents Auto as Copilot Fusion with the service's tiers,
never with a High that routes to HydraFusion, so the picker drops the branches
for that and the tests that covered them. Tests that apply to the service's
tiers now use their shape. A chat on HydraFusion now moves to Copilot Fusion
only when the picker offers it, not when Fusion needs a newer VS Code.

Also corrects a comment on the provider's tier names and drops an assertion
that could not fail.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 21, 2026 06:47
@bhavyaus
Bhavya U (bhavyaus) marked this pull request as ready for review October 21, 2026 06:50
@bhavyaus
Bhavya U (bhavyaus) enabled auto-merge (squash) October 21, 2026 06:51

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

3 open issues
What changed in this PR

Removes legacy Copilot Fusion “routed High → HydraFusion” support (and its tests) in favor of the service-tier/provider-tier shape, and adjusts routing so HydraFusion only migrates to Fusion when Fusion is actually offerable/runnable in the picker.

Changes:

  • Simplified Fusion-tier labeling and HydraFusion filtering to rely on provider tiers (dropping balanceUsesHydraFusion routing behavior and intelligence fallback).
  • Updated picker routing logic to only migrate HydraFusion → Fusion when Fusion is runnable/offerable.
  • Refactored and pruned tests to cover the service-tier/provider-tier shape, removing legacy-shape test cases.
File Description
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerTelemetry.test.ts Updates fixtures to provider-tier Fusion shape and removes legacy routing tests.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.test.ts Updates Fusion fixture to provider tiers and drops legacy routed-High test coverage.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerPresentation.test.ts Updates tier-label expectations to provider-tier labeling.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerCard.test.ts Removes an assertion that could not fail due to radio control rebuild behavior.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​agentSessions/​agentHostLanguageModelProvider.test.ts Updates Fusion metadata expectations to the new default balanceUsesHydraFusion: false.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​agentSessions/​agentHostChatContribution.test.ts Narrows footer assertions to provider-tier Fusion behavior only.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerWidget.ts Ensures HydraFusion → Fusion migration only happens when Fusion is runnable/offerable; adds shared runnable predicate helper.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.ts Removes legacy HydraFusion “replacement tier” behavior and tightens HydraFusion filtering under Fusion.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerPresentation.ts Drops legacy routed-High logic from getFusionTierLabel; relies on provider tiers (and Max fallback).
src/​vs/​platform/​agentHost/​node/​copilot/​copilotAgent.ts Clarifies comment about tier label/description sources.

Review effort: Lite

@bhavyaus
Bhavya U (bhavyaus) merged commit 58643ce into main Oct 21, 2026
58 of 59 checks passed
@bhavyaus
Bhavya U (bhavyaus) deleted the bhavyau/copilot-fusion-test-cleanup branch October 21, 2026 07:21
@vs-code-engineering vs-code-engineering Bot added this to the 1.144.0 milestone Oct 21, 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