Repository navigation
Improve Fusion visibility in model picker - #343324
Conversation
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
5 open issues
heightInLinesis used directly without validation. Values like 0, negative numbers, NaN, or… · New--vscode-agentsGradient-tintColormay not be defined in all themes/contexts; when undefined, the… · New The comment says Fusion’s routing badge is only ever its discount, but the condition keys off… · New The test assertsrow.style.height, which only reflects inline styles and can be empty if the list… · New This doc comment is difficult to parse ('presents it with Fusion on'). Consider rephrasing for… · New
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-discountbadge 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]>
7c1b2f4
|
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.
Result on current main:
|
#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]>
#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]>
#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]>
#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]>
#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]>
…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]>


Makes Copilot Fusion stand out in the model picker.
heightInLinesoption for this; values below 1 or not finite are ignored.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.How to test
Component fixtures:
chat/input/tabbedModelPicker/PickerWithCopilotFusionDiscountandPickerCopilotFusionSelected.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 passingnpm run typecheck-client: passednpm run eslintand hygiene on the changed files: passednpm run stylelint: no errorsThe component screenshot baselines for the new fixtures still need to be added.