Repository navigation
Fix compile break in tabbed model picker fixture - #343376
Conversation
#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]>
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
No open issues 🎉
What changed in this PR
Fixes a TypeScript compile error in the tabbed model picker fixture caused by an upstream type change to autoModelFusion (from an object to a boolean), restoring Compile & Hygiene on main.
Changes:
- Updates the fixture model metadata to set
autoModelFusion: true(boolean) instead of the removed object shape.
| File | Description |
|---|---|
| src/vs/workbench/test/browser/componentFixtures/chat/tabbedModelPicker.fixture.ts | Aligns fixture metadata with updated ILanguageModelChatMetadata typing to fix the compile break. |
Review effort: Lite
#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) Bhavya U (@bhavyaus) since this fixes the stale-base pair between #343324 and #343258 (main has not compiled since 22:19 UTC, and the 23:00 UTC insider failed on it), could one of you approve? It's the one-line
|
#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]>
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
No open issues 🎉
Review effort: Lite
…b-pr-checks-efficiency Picks up the fix for the type error in tabbedModelPicker.fixture.ts (#343376), which failed Compile & Hygiene on the previous merge. 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]>
Include the existing fix from #343376 for the autoModelFusion fixture metadata mismatch that failed Compile & Hygiene. Native TypeScript compilation, staged hygiene and 415 targeted tests pass on the merged sources. Co-authored-by: Copilot <[email protected]>
Includes the upstream chat fixture compile repair from #343376. Co-authored-by: Copilot <[email protected]>
Fixes the
Compile & Hygienebreak onmain:#343258 changed
autoModelFusionto aboolean("Whether the agent host presents its Auto model as Copilot Fusion"). #343324, merged after it, still set the old{ balanceUsesHydraFusion: false }object in the tabbed model picker fixture. Each PR compiled by itself, but together they breakmainand every PR'sCompile & Hygiene(for example #343360).The fixture's model is presented as Copilot Fusion, so the value becomes
true.#343373 contains the same one-line change inside a larger Customizations PR. This PR fixes
mainon its own. The two hunks are identical and merge cleanly in either order.Validation:
tsc -p src/tsconfig.json --noEmitno longer reports the fixture error.