Skip to content

Copilot login failed (PermissiveAuthRequiredError: Permissive authentication is required) #307335

@nathan815

Description

@nathan815

Type: Bug

Suddenly after a recent VS Code update, on both stable and insiders, I can no longer use Copilot in VS Code. It says "Github login failed. Please sign in to your GitHub account to use Copilot" yet the Copilot menu in the status bar shows it's logged in to my account AND the model selector shows all the models I expect.

I've tried completely signing out of all accounts in VS Code and then re-signing in, but it did not help.

This started happening last week. It's forced me to start using Copilot CLI exclusively, but I am missing the Copilot UI in VS Code.

I'm a Microsoft employee using my internal alias_microsoft GitHub account.

Image

Extension version: 0.42.2
VS Code version: Code - Insiders 1.115.0-insider (54b695e, 2026-04-01T10:49:44-07:00)
OS version: Windows_NT x64 10.0.26200
Modes:

Logs
Error: Error: GitHubLoginFailed
    at Qne._authShowWarnings (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1686:18465)
    at Qne.getCopilotToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1686:16183)
    at sfe.getCopilotToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1364:7787)
    at Bte._getToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1656:8827)
    at r (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1656:8291)
Warning: [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
Error: Error: GitHubLoginFailed
    at Qne._authShowWarnings (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1686:18465)
    at Qne.getCopilotToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1686:16183)
    at sfe.getCopilotToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1364:7787)
    at Bte._getToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1656:8827)
    at Bte._provideLanguageModelChatInfo (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1656:4426)
    at Cd.$provideLanguageModelChatInfo (file:///c:/Users/johnsonn/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/54b695e02e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:503:34041)
Debug: Getting CopilotToken (force: undefined)...
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: Getting CopilotToken (force: undefined)...
Warning: GitHub login failed
Debug: Getting CopilotToken (force: undefined) threw error: Error: GitHubLoginFailed
Debug: Getting CopilotToken (force: undefined) threw error: Error: GitHubLoginFailed
Debug: Getting CopilotToken (force: undefined) threw error: Error: GitHubLoginFailed
Debug: Getting CopilotToken (force: undefined) threw error: Error: GitHubLoginFailed
Debug: Getting CopilotToken (force: undefined) threw error: Error: GitHubLoginFailed
Debug: Getting CopilotToken (force: undefined) threw error: Error: GitHubLoginFailed
Debug: Getting CopilotToken (force: undefined) threw error: Error: GitHubLoginFailed
Error: You are not signed in to GitHub. Please sign in to use Copilot.
Warning: [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
Error: Error: GitHubLoginFailed
    at Qne._authShowWarnings (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1686:18465)
    at Qne.getCopilotToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1686:16183)
    at sfe.getCopilotToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1364:7787)
    at Bte._getToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1656:8827)
    at r (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1656:8291)
Warning: [LanguageModelAccess] LanguageModel/Embeddings are not available without auth token
Error: Error: GitHubLoginFailed
    at Qne._authShowWarnings (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1686:18465)
    at Qne.getCopilotToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1686:16183)
    at sfe.getCopilotToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1364:7787)
    at Bte._getToken (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1656:8827)
    at Bte._provideLanguageModelChatInfo (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1656:4426)
    at Cd.$provideLanguageModelChatInfo (file:///c:/Users/johnsonn/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/54b695e02e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:503:34041)
Debug: Finished handling auth change event.
Debug: [CopilotCLI] Found 44 JSONL sessions and 0 legacy sessions
Debug: [CopilotCLI] Found 44 JSONL sessions and 0 legacy sessions
Trace: [GitServiceImpl] Initial repository discovery finished: 1 repositories found.
Debug: copilotCloudSessionsProvider#provideChatSessionItems: repoIds=[], isAgentSessionsWorkspace=false
Debug: copilotCloudSessionsProvider#provideChatSessionItems: not a GitHub repo, returning empty
Trace: No authentication token available for getCopilotAgentModels
Error: PermissiveAuthRequiredError: Permissive authentication is required
    at g3.getCopilotAgentModels (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:1673:9696)
    at processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async Promise.allSettled (index 1)
    at U0.provideChatSessionProviderOptions (c:\Users\johnsonn\.vscode-insiders\extensions\github.copilot-chat-0.42.2\dist\extension.js:2555:11676)
    at fh.$provideChatSessionProviderOptions (file:///c:/Users/johnsonn/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/54b695e02e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:528:70559)
Trace: No authentication token available for getRecentlyCommittedRepositories
Trace: Failed to fetch recently committed repos: PermissiveAuthRequiredError: Permissive authentication is required
Debug: copilotCloudSessionsProvider#provideChatSessionItems: repoIds=[], isAgentSessionsWorkspace=false
Debug: copilotCloudSessionsProvider#provideChatSessionItems: not a GitHub repo, returning empty
Debug: copilotCloudSessionsProvider#provideChatSessionProviderOptions: Returning options: [
  {
    "id": "repositories",
    "name": "Repository",
    "description": "Select repository",
    "icon": {
      "id": "repo"
    },
    "items": [],
    "commands": [
      {
        "command": "github.copilot.chat.cloudSessions.openRepository",
        "title": "Browse repositories..."
      }
    ]
  }
]
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: copilotCloudSessionsProvider#provideChatSessionItems: repoIds=[], isAgentSessionsWorkspace=false
Debug: copilotCloudSessionsProvider#provideChatSessionItems: not a GitHub repo, returning empty
Debug: [CopilotCLI] Found 44 JSONL sessions and 0 legacy sessions
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: copilotCloudSessionsProvider#provideChatSessionItems: repoIds=[], isAgentSessionsWorkspace=false
Debug: copilotCloudSessionsProvider#provideChatSessionItems: not a GitHub repo, returning empty
Debug: [CopilotCLI] Found 44 JSONL sessions and 0 legacy sessions
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: true.
Trace: [GitServiceImpl][doOpenRepository] Active repository: {"_repo":{"rootUri":{"$mid":1,"external":"file:///c%3A/projects/AVS-Tools","path":"/c:/projects/AVS-Tools","scheme":"file"},"inputBox":{},"kind":"repository","state":{},"ui":{}},"rootUri":{"$mid":1,"external":"file:///c%3A/projects/AVS-Tools","path":"/c:/projects/AVS-Tools","scheme":"file"},"kind":"repository","headBranchName":"master","headCommitHash":"3debeb6fc33aa8eced3a3fc4bbb7d7ac6ecf5d76","upstreamBranchName":"master","upstreamRemote":"origin","isRebasing":true,"remotes":["origin"],"remoteFetchUrls":["https://msazure.visualstudio.com/DefaultCollection/One/_git/Azure-Dedicated-AVS-Tools"],"worktrees":[{"name":"AVS-Tools","path":"c:\\projects\\AVS-Tools","ref":"refs/heads/master","detached":false,"main":true}],"changes":{"mergeChanges":[],"indexChanges":[],"workingTree":[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}],"untrackedChanges":[]},"_onDidChangeSignal":{"_observers":{},"debugName":"Observable Signal From Event"},"headBranchNameObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"headCommitHashObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"upstreamBranchNameObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"upstreamRemoteObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"isRebasingObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"_checkIsIgnored":{"_waitingTimeMs":1000,"_queue":[],"_timeout":null},"_isIgnored":{"_map":{},"_map2":{}}}
Debug: copilotCloudSessionsProvider#provideChatSessionItems: repoIds=[], isAgentSessionsWorkspace=false
Debug: copilotCloudSessionsProvider#provideChatSessionItems: not a GitHub repo, returning empty
Debug: [CopilotCLI] Found 44 JSONL sessions and 0 legacy sessions
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Request IDs

System Info
Item Value
CPUs AMD EPYC 7763 64-Core Processor (16 x 2445)
GPU Status 2d_canvas: unavailable_software
GPU0: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VENDOR=Google, DRIVER_VERSION=10.0.26100.7309
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: disabled_software
video_encode: disabled_software
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
Load (avg) undefined
Memory (System) 63.95GB (35.56GB free)
Process Argv --crash-reporter-id 5cbc9be6-92fa-4945-b204-86900eb6804a
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249598
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
82j33506:31327384
6abeh943:31336334
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
use-responses-api:31390341
ddidt:31398484
je187915:31401257
cmp-cht-xtab-300-edit-0-7-speculative:31484966
metis_rerank_treatment1:31411021
cp_cls_c_966_ss:31454199
inlinechat_v2_hd992725:31445440
4je02754:31455664
c3h7c220:31478652
8g5ec713_opus_4_6:31487349
cp_cls_c_1081:31454833
conptydll_true:31485575
ia-use-proxy-models-svc:31446143
e9c30283:31453065
test_treatment2:31471001
idci7584:31454084
nes_chat_context_enabled:31451401
e3e4d672:31454087
showingstats:31457201
ei9d7968:31462942
534a6447_copy:31478741
hg17d649:31455236
nes-extended-on:31455475
jc933416:31462667
89g7j272:31480197
hhf17803:31462392
bg_compact_t:31477450
t-some:31466503
7e187181:31482583
cpptoolsoff-v2:31475362
thinking_effort_h:31479457
i2gc6536:31472020
h08i8180:31475367
client_tst_t:31486874
po_split_t:31475411
ddid_t:31478204
g_20_d1382936:31487646
file_logging_enabled:31485059
606h2495_c:31485219

Metadata

Metadata

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions