Conversation
…sabled Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Chat sign-in should automatically enable the GitHub Authentication extension if it's disabled
Chat sign-in: auto-enable GitHub Authentication extension if silently disabled
Feb 19, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses an issue where users cannot sign in to Copilot Chat when the built-in GitHub Authentication extension (vscode.github-authentication) becomes silently disabled. The solution automatically re-enables the extension during the chat sign-in flow.
Changes:
- Added
providerExtensionIdconfiguration to identify the auth provider extension backing the chat agent - Implemented
maybeEnableAuthExtension()function to detect and re-enable disabled auth extensions - Integrated auto-enablement into both the sign-in flow (
chatSetupController.ts) and the request forwarding flow (chatSetupProviders.ts)
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/vs/base/common/product.ts | Added providerExtensionId: string field to IDefaultChatAgent interface to identify the auth provider extension |
| product.json | Set providerExtensionId to "vscode.github-authentication" for the default chat agent configuration |
| src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.ts | Implemented maybeEnableAuthExtension() to detect and re-enable disabled auth extensions, only acting on user-controlled disabled states |
| src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.ts | Integrated maybeEnableAuthExtension() into the sign-in flow to ensure auth extension is enabled before sign-in attempts |
| src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.ts | Integrated maybeEnableAuthExtension() into request forwarding flow with token refresh when extension is re-enabled |
src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.ts
Outdated
Show resolved
Hide resolved
bpasero
approved these changes
Feb 20, 2026
Merged
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.
When the built-in
vscode.github-authenticationextension gets silently disabled, Copilot Chat sign-in fails with a confusing error and no clear remediation path.Changes
src/vs/base/common/product.ts— AddedproviderExtensionId: stringtoIDefaultChatAgentto identify the extension backing the auth provider.product.json— Set"providerExtensionId": "vscode.github-authentication"indefaultChatAgent.chatSetupController.ts— AddedmaybeEnableAuthExtension(), called at the top ofsignIn():extensionsWorkbenchService.localenablementStateisDisabledGloballyorDisabledWorkspace, re-enables it viasetEnablement()and restarts extension hosts viaupdateRunningExtensions()so the auth provider registers before the sign-in attempt proceedsDisabledByMalicious,DisabledByTrustRequirement, or other system-managed statesOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.