Skip to content

copilot: preserve BYOK models when voice registration fails - #342078

Merged
Megan Rogge (meganrogge) merged 1 commit into
mainfrom
agents/fix-byok-voice-mode-regression
Oct 16, 2026
Merged

Megan Rogge (meganrogge) merged 1 commit into
mainfrom
agents/fix-byok-voice-mode-regression

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Fixes the BYOK model-registration regression introduced by #339150.

Summary

The product-build proposal allowlist for GitHub.copilot-chat omits speech, overriding the extension manifest's declaration. Registering the GPT-Live voice provider therefore throws before BYOK model providers and authentication listeners initialize, leaving BYOK models unavailable in Manage Models and the model picker.

  • Isolate and log voice-provider registration failures so the nine BYOK model providers can still initialize.
  • Exercise provider registration, token changes, authentication changes, logging, and disposal with speech registration both enabled and rejected.
  • Document that adopting a proposal also requires updating the product allowlist.

Separate rollout follow-up: add speech to extensionEnabledApiProposals["GitHub.copilot-chat"] in the applicable microsoft/vscode-distro product mixins. This PR preserves BYOK models when voice registration fails; it does not enable the missing proposal in shipped products or bypass proposal enforcement.

Validation

  • Added regression case failed before the production fix with the reported missing-speech error, then passed after the fix.
  • npm --prefix extensions/copilot run test:unit -- src/extension/byok/vscode-node/test/byokContribution.spec.ts src/extension/byok/vscode-node/test/gptLiveSession.spec.ts src/extension/byok/vscode-node/test/openAIProvider.spec.ts — passed, 18 tests across 3 files.
  • npm run eslint -- extensions/copilot/src/extension/byok/vscode-node/byokContribution.ts extensions/copilot/src/extension/byok/vscode-node/test/byokContribution.spec.ts — passed.
  • git diff --check — passed before commit.
  • npm --prefix extensions/copilot run compile — passed.

Live product-build UI and end-to-end voice flows were not run.

Isolate and log voice provider registration failures so a missing speech proposal does not prevent BYOK model providers from loading. Cover both proposal states and document the product allowlist requirement.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 14:37
@meganrogge Megan Rogge (meganrogge) added this to the 1.143.0 milestone Oct 16, 2026
@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) October 16, 2026 14:39

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.

🟢 Approval recommended

The narrow fix preserves existing initialization and disposal behavior, with regression coverage for both speech registration outcomes.

0 open findings

What changed in this PR

Prevents GPT-Live voice registration failures from blocking BYOK model initialization, addressing the regression from #339150.

Changes:

  • Isolates and logs voice-provider registration failures.
  • Tests registration, authentication updates, logging, and disposal with speech enabled or rejected.
  • Documents product allowlist requirements; shipped-product enablement remains a separate follow-up.

No actionable findings remain. Live product-build and end-to-end voice validation remain untested.

File Description
extensions/​copilot/​src/​extension/​byok/​vscode-node/​test/​byokContribution.spec.ts Covers successful and rejected speech registration.
extensions/​copilot/​src/​extension/​byok/​vscode-node/​byokContribution.ts Preserves BYOK initialization after voice registration fails.
extensions/​copilot/​CONTRIBUTING.md Documents proposal allowlist requirements.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

auto-merge was automatically disabled October 16, 2026 14:41

Pull request was closed

@mz0559909003-crypto

Copy link
Copy Markdown

agents/fix-byok-voice-mode-regression

@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) October 16, 2026 14:43
@meganrogge
Megan Rogge (meganrogge) merged commit 7ab2368 into main Oct 16, 2026
57 of 93 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/fix-byok-voice-mode-regression branch October 16, 2026 16:35
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.

5 participants