Repository navigation
[release/1.149] copilot: fix signed-out BYOK chat hanging when the legacy Copilot CLI provider is off (cherry-pick #351273) - #351290
Open
Vritant Bhardwaj (vritant24) wants to merge 1 commit into
Conversation
… provider is off (#351273) copilot: unblock activation for signed-out BYOK when the Copilot CLI vendor is unregistered Signed out, the first Copilot token request fails without an identity change, so nothing completed ConversationFeature's activation blocker. With the legacy Copilot CLI provider disabled, the BYOK model query waits for this extension's activation and the two deadlock. Release the blocker once the first token request settles. Fixes #350360 Co-authored-by: Copilot <[email protected]> (cherry picked from commit 32686b8)
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the signed-out BYOK chat activation fix.
No open issues 🎉
What changed in this PR
Cherry-picks #351273 into release/1.149 to fix signed-out bring-your-own-key (BYOK) chat hanging when the legacy Copilot CLI provider is disabled, addressing #350360.
Changes:
- Releases the conversation activation blocker when the initial Copilot token request succeeds or fails, while preserving existing chat enablement logic.
- Adds a regression test covering failed authentication, a pending model query, and subsequent activation when BYOK models become available.
No actionable findings remain. The PR reports upstream validation; build and tests were not rerun on this release branch.
| File | Description |
|---|---|
| extensions/copilot/src/extension/conversation/vscode-node/test/conversationFeature.test.ts | Tests signed-out activation unblocking and delayed BYOK enablement. |
| extensions/copilot/src/extension/conversation/vscode-node/conversationFeature.ts | Unblocks activation after the first token request settles, with a disposal guard. |
Review effort: Balanced
This branch has not been deployed
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.
Cherry-pick of #351273 onto
release/1.149. Fixes #350360Problem
Signed out of GitHub with a BYOK model configured, a chat request in the Local harness never starts and ends with "Chat took too long to get ready" when
github.copilot.chat.cli.legacyProvider.enabledis off. Extension activation waits onConversationFeature.activationBlocker, while BYOK detection waits on extension activation because the declaredcopilotclivendor is no longer registered.Change
ConversationFeaturealso releases the activation blocker once the first Copilot token request settles, whether it succeeds or fails. See #351273 for the full description.How to test
chatLanguageModels.json)."github.copilot.chat.cli.legacyProvider.enabled": falseand reload.Validation
git cherry-pick -x 32686b872ab: applied without conflictsconversationFeature.ts, its test and the authentication service files it relies on are identical tomain, where typecheck, lint, theConversation feature test suiteand a manual signed-out run passed (see copilot: fix signed-out BYOK chat hanging when the legacy Copilot CLI provider is off #351273).