Repository navigation
Drop Fusion's routed High path and the tests for it - #343147
Merged
Merged
Conversation
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]>
Bhavya U (bhavyaus)
marked this pull request as ready for review
October 21, 2026 06:50
Bhavya U (bhavyaus)
enabled auto-merge (squash)
October 21, 2026 06:51
Dirk Bäumer (dbaeumer)
approved these changes
Oct 21, 2026
Contributor
There was a problem hiding this comment.
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
This change fixes a specific behavior: HydraFusion should only migrate to Fusion when Fusion is… · New This test name still refers to the removed legacy behavior where HydraFusion could be shown as… · New The method name_isRunnablereads like it returns a boolean for a single model, but it actually… · New
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
balanceUsesHydraFusionrouting behavior andintelligencefallback). - 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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:balanceUsesHydraFusionbranches ingetFusionTierLabel,_normalizeFusionHighand the tabbed widget's HydraFusion filter, plus theintelligencefallback in_getHydraFusionTier.createFusionModelfixture, 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._getRoutingTier.Also from the gpt-6.1-sol review of #343140:
aria-descriptionassertion that could not fail, because the card rebuilds its radio control on every render.Testing: with
chat.copilot.dynamicAutoTiers.enabledon, 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-clientpassed.npm run eslinton the changed files passed../scripts/test.shcovering copilotAgent, all modelPicker suites, agentHostLanguageModelProvider, agentHostChatContribution and chatAccessibilityHelp: 2,140 passing (after rebasing ontomain).equivalent-selectionto Fusion and no reset.