You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(desktop): sign in to GitHub Copilot with an account besides PAT #3388
It then rejects classic PATs, so a user must go mint a fine-grained PAT with the
Copilot Requests permission. The service's own failure message admits the primary
path often does not work: 普通 gh auth login 可能不包含该权限.
Settings reflects this — the card reads "GitHub Copilot subscription access using
an existing GitHub login" (provider-display-copy.ts:259) and renders a bespoke
GitHubCopilotLoginPanel (provider-oauth-section.tsx:176) rather than the
standard OAuth login card the other three account providers share.
Codex and xAI already sign in with device flows (#1950, and the presentation
noted in #3219). Copilot never got one.
Desired outcome
A user with a Copilot subscription clicks sign in, authorizes a code in the browser, and gets a working connection — no PAT, no gh CLI, no scope hunting.
Importing an existing gh credential stays available for machines that are already authenticated.
Alternatives or workarounds
Today: install gh, or create a fine-grained PAT with Copilot Requests and put it in COPILOT_GITHUB_TOKEN.
Considered leaving Copilot on its bespoke IPC namespace and only improving the error copy, but the missing flow is the actual gap.
Activity
feat(runtime): add GitHub Copilot device-flow enrollment
feat(desktop): sign in to GitHub Copilot with a device grant
feat(runtime): add GitHub Copilot device-flow enrollment
feat(desktop): sign in to GitHub Copilot with a device grant
feat(runtime): add GitHub Copilot device-flow enrollment
feat(desktop): sign in to GitHub Copilot with a device grant