Skip to content

Fix compile break in tabbed model picker fixture - #343376

Merged
Bryan Chen (bryanchen-d) merged 1 commit into
mainfrom
copilot/vscode/fix-fusion-fixture-compile
Oct 21, 2026
Merged

Bryan Chen (bryanchen-d) merged 1 commit into
mainfrom
copilot/vscode/fix-fusion-fixture-compile

Conversation

@bryanchen-d

Copy link
Copy Markdown
Collaborator

Fixes the Compile & Hygiene break on main:

src/vs/workbench/test/browser/componentFixtures/chat/tabbedModelPicker.fixture.ts(245,7): error TS2322: ... is not assignable to type 'ILanguageModelChatMetadataAndIdentifier'.

#343258 changed autoModelFusion to a boolean ("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 break main and every PR's Compile & 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 main on its own. The two hunks are identical and merge cleanly in either order.

Validation: tsc -p src/tsconfig.json --noEmit no longer reports the fixture error.

Authored with Copilot

#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]>
Copilot AI balanced review requested due to automatic review settings October 21, 2026 22:40

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

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

@bryanchen-d
Bryan Chen (bryanchen-d) requested a balanced review from Copilot October 21, 2026 22:57
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]>
@bryanchen-d

Copy link
Copy Markdown
Collaborator Author

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 autoModelFusion: true change in the fixture; Compile & Hygiene is green on it. Bryan can't approve because GitHub lists him as the author.

Co-authored with Copilot

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]>
@bryanchen-d
Bryan Chen (bryanchen-d) marked this pull request as ready for review October 21, 2026 23:09
@bryanchen-d
Bryan Chen (bryanchen-d) marked this pull request as draft October 21, 2026 23:09

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

No open issues 🎉

Review effort: Lite

@bryanchen-d
Bryan Chen (bryanchen-d) marked this pull request as ready for review October 21, 2026 23:14
@bryanchen-d
Bryan Chen (bryanchen-d) enabled auto-merge (squash) October 21, 2026 23:14
@bryanchen-d
Bryan Chen (bryanchen-d) merged commit f7d212e into main Oct 21, 2026
59 of 61 checks passed
@bryanchen-d
Bryan Chen (bryanchen-d) deleted the copilot/vscode/fix-fusion-fixture-compile branch October 21, 2026 23:15
@vs-code-engineering vs-code-engineering Bot added this to the 1.144.0 milestone Oct 21, 2026
Alexandru Dima (alexdima) added a commit that referenced this pull request Oct 21, 2026
…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]>
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]>
Benjamin Christopher Simmonds (benibenj) added a commit that referenced this pull request Oct 22, 2026
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]>
Aaron Munger (amunger) added a commit that referenced this pull request Oct 22, 2026
Includes the upstream chat fixture compile repair from #343376.

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.

3 participants