Repository navigation
copilot: preserve BYOK models when voice registration fails - #342078
Merged
Megan Rogge (meganrogge) merged 1 commit intoOct 16, 2026
Merged
Conversation
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]>
Federico Brancasi (federicobrancasi)
approved these changes
Oct 16, 2026
Logan Ramos (lramos15)
approved these changes
Oct 16, 2026
Contributor
There was a problem hiding this comment.
🟢 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.
|
agents/fix-byok-voice-mode-regression |
Megan Rogge (meganrogge)
enabled auto-merge (squash)
October 16, 2026 14:43
Megan Rogge (meganrogge)
deleted the
agents/fix-byok-voice-mode-regression
branch
October 16, 2026 16:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the BYOK model-registration regression introduced by #339150.
Summary
The product-build proposal allowlist for
GitHub.copilot-chatomitsspeech, 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.Separate rollout follow-up: add
speechtoextensionEnabledApiProposals["GitHub.copilot-chat"]in the applicablemicrosoft/vscode-distroproduct 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
speecherror, 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.