Skip to content

Improve Fusion visibility in model picker - #343324

Merged
Logan Ramos (lramos15) merged 2 commits into
mainfrom
agents/improve-fusion-visibility-model-picker
Oct 21, 2026
Merged

Logan Ramos (lramos15) merged 2 commits into
mainfrom
agents/improve-fusion-visibility-model-picker

Conversation

@lramos15

@lramos15 Logan Ramos (lramos15) commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Makes Copilot Fusion stand out in the model picker.

  • Taller row: Copilot Fusion's row is twice the height of the other entries. Action list items gain a heightInLines option for this; values below 1 or not finite are ignored.
  • Brand gradient badge: Fusion's discount badge uses the GitHub Copilot mint-to-purple gradient, registered as theme colors (chat.fusionBadgeGradientStart, chat.fusionBadgeGradientEnd, chat.fusionBadgeForeground). The badge text keeps at least 5.7:1 contrast across the gradient. High contrast themes drop the fill and show an outlined pill with the contrast border.
  • The gradient style follows Fusion's actual discount at the selected effort level, so other routing badges are unaffected. Plain Auto and HydraFusion rows are unchanged.

How to test

  1. Sign in with a plan that offers Copilot Fusion with a discount, and open the model picker.
  2. Copilot Fusion leads the list on a double-height row, with its discount in the brand gradient. Check dark, light, and high contrast themes.

Component fixtures: chat/input/tabbedModelPicker/PickerWithCopilotFusionDiscount and PickerCopilotFusionSelected.

Validation

  • ./scripts/test.sh --run …/modelPickerTabbedWidget.test.ts --run …/modelPickerPresentation.test.ts --run …/modelPickerCard.test.ts --run src/vs/platform/actionWidget/test/browser/actionList.test.ts: 390 passing
  • npm run typecheck-client: passed
  • npm run eslint and hygiene on the changed files: passed
  • npm run stylelint: no errors

The component screenshot baselines for the new fixtures still need to be added.

Copilot AI balanced review requested due to automatic review settings October 21, 2026 19:51
@lramos15
Logan Ramos (lramos15) enabled auto-merge (squash) October 21, 2026 19:51
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: b01003b5 Current: 6eb83108

Added (2)

chat/input/tabbedModelPicker/PickerWithCopilotFusionDiscount/Light

current

chat/input/tabbedModelPicker/PickerCopilotFusionSelected/Light

current

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

5 open issues
What changed in this PR

Enhances Copilot Fusion’s prominence in the chat model picker by making it visually “featured” (taller row) and applying a distinct discount badge style.

Changes:

  • Adds a “featured” auto-model row treatment (2x height + extra class) for Copilot Fusion.
  • Introduces a dedicated fusion-discount badge class and corresponding CSS styling.
  • Adds fixtures and a unit test to validate row height and badge styling behavior.
File Description
src/​vs/​workbench/​test/​browser/​componentFixtures/​chat/​tabbedModelPicker.fixture.ts Adds a Copilot Fusion auto model fixture + picker fixtures to preview the featured row and discount styling.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.test.ts Adds a test asserting Copilot Fusion’s row height and discount badge styling.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​modelPickerTabbedWidget.ts Applies featured row height/class for Fusion and routes Fusion discount to a dedicated badge style.
src/​vs/​workbench/​contrib/​chat/​browser/​widget/​input/​modelPicker/​media/​modelPicker.css Adds fusion-discount badge styling using Agents gradient tint and contrast border.
src/​vs/​platform/​actionWidget/​browser/​actionList.ts Adds heightInLines to action list items and implements row-height override behavior.

Review effort: Lite

Register the mint-to-purple GitHub Copilot gradient as theme colors (chat.fusionBadgeGradientStart/End/Foreground) and use them for Copilot Fusion's discount badge; high contrast drops the fill for the contrast border. Key the badge style off Fusion's actual discount, ignore invalid row heights in the action list, and assert rendered row heights in the test.

Co-authored-by: Copilot <[email protected]>
@lramos15
Logan Ramos (lramos15) merged commit 2ac99ce into main Oct 21, 2026
59 checks passed
@lramos15
Logan Ramos (lramos15) deleted the agents/improve-fusion-visibility-model-picker branch October 21, 2026 22:19
@vs-code-engineering vs-code-engineering Bot added this to the 1.144.0 milestone Oct 21, 2026
@bryanchen-d

Copy link
Copy Markdown
Collaborator

Logan Ramos (@lramos15) Bhavya U (@bhavyaus) heads-up: main stopped compiling at 22:19 UTC from a stale-base pair between this PR and #343258.

  • Harden and clean up Copilot Fusion and dynamic Auto tiers #343258 (merged 21:56 UTC) changed ILanguageModelChatMetadata.autoModelFusion from { readonly balanceUsesHydraFusion: boolean } to boolean.
  • This PR (merged 22:19 UTC) added autoModelFusion: { balanceUsesHydraFusion: false } to COPILOT_FUSION_MODEL in src/vs/workbench/test/browser/componentFixtures/chat/tabbedModelPicker.fixture.ts.

Result on current main: tabbedModelPicker.fixture.ts(245,7): error TS2322 ... is not assignable to type 'ILanguageModelChatMetadataAndIdentifier' (seen in Compile & Hygiene on #343360's merge ref, job). The fix is likely a one-liner in that fixture, e.g. autoModelFusion: true, but you know the intended semantics. Could one of you push a fix-forward? The 23:00 UTC insider builds main HEAD, so ideally before then.

Co-authored with Copilot

Jessie Houghton (houghj16) pushed a commit that referenced this pull request Oct 21, 2026
#343258 narrowed `autoModelFusion` to a boolean, while #343324, merged after it,
still set the retired `{ balanceUsesHydraFusion: false }` object in the tabbed
model picker fixture. That breaks `Compile & Hygiene` on main and every PR.

Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15) added a commit that referenced this pull request Oct 21, 2026
#343258 made `autoModelFusion` a boolean while #343324 set it to an
object in this fixture, which breaks compilation on main. Same change as
#343376.

Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15) added a commit that referenced this pull request Oct 21, 2026
#343258 made `autoModelFusion` a boolean while #343324 set it to an
object in this fixture, which breaks compilation on main. Same change as
#343376.

Co-authored-by: Copilot <[email protected]>
Bryan Chen (bryanchen-d) added a commit that referenced this pull request Oct 21, 2026
#343258 narrowed `autoModelFusion` to a boolean, while #343324, merged after it,
still set the retired `{ balanceUsesHydraFusion: false }` object in the tabbed
model picker fixture. That breaks `Compile & Hygiene` on main and every PR.

Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15) added a commit that referenced this pull request Oct 22, 2026
#343370)

* sessions: fix Send and chat binding regressions in the shared composer

The shared composer (#342683) hosts a real ChatWidget bound to a chat
model, which the previous composer never loaded before Send.

- Cloud drafts: the legacy extension seeds a "no repository" placeholder
  when the draft chat loads, and the chat input's option validity check
  disabled Send even though the repository picker had a valid choice.
  Inputs whose host owns submission (hostSubmit) no longer check option
  validity, and the Copilot provider applies the draft's selections when
  its chat model is published, not only on send.
- Cloud drafts used `owner/repo/HEAD` as the repository option id, which
  the extension saved as a recently selected repository. Use `owner/repo`.
- With several chat groups open, the in-session new-chat composer bound
  and sent to the session's active chat, overwriting another chat's
  input. It now binds and sends to the chat its own group shows.

Co-authored-by: Copilot <[email protected]>

* sessions: keep inline references when the composer binds another draft

Binding a new draft's chat model replaces the input with that model's
state. The composer carried its text and attachments over, but not its
inline references (such as `#file:` completions), so the next parse
dropped them and the prompt was sent as plain text without the file.
Carry the references over as the failed-send restore already does.

Co-authored-by: Copilot <[email protected]>

* sessions: drop the path fallback for a Cloud draft's repository option

Cloud drafts are only created for GitHub repository roots, so `repoNwo`
is always available. The root path fallback could only produce the
`owner/repo/HEAD` form this PR fixes.

Co-authored-by: Copilot <[email protected]>

* chat: fix the tabbed model picker fixture's Fusion metadata type

#343258 made `autoModelFusion` a boolean while #343324 set it to an
object in this fixture, which breaks compilation on main. Same change as
#343376.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15) added a commit that referenced this pull request Oct 22, 2026
…er (#343378)

* sessions: restore #session references for /troubleshoot in the composer

#342683 replaced the Agents window composer input and dropped its
`#session` completions. The workbench completions it now relies on skip
agent-host chats, such as Copilot CLI sessions, and reference a session
resource that the sessions management service does not resolve. So
`/troubleshoot #session:<title>` could no longer point the skill at
another session's event log.

Provide `#session` completions in the shared composer again, listing the
Copilot CLI sessions on the composer session's host. Accepting one adds
an inline reference whose value the troubleshoot augmentation resolves.

Co-authored-by: Copilot <[email protected]>

* sessions: keep #session completions while typing a title, and scope them to the input model

- Filter on the inserted `#session:<title>` text. The `#session <title>`
  filter text had no `:`, so the editor hid every suggestion once
  `#session:` was typed.
- Offer completions only for the composer's own input model, not any
  model that shares its resource.

Co-authored-by: Copilot <[email protected]>

* chat: fix the tabbed model picker fixture's Fusion metadata type

#343258 made `autoModelFusion` a boolean while #343324 set it to an
object in this fixture, which breaks compilation on main. Same change as
#343376.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
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.

6 participants