Copilot keep prompting for sign in when using GHE (github enterprise)
Type: Bug
This is the same as https://github.com/microsoft/vscode/issues/337562 which was closed for the 1.140.0 release and https://github.com/microsoft/vscode/issues/336407 which was closed for the 1.139.0 release. However, I still experience the same problem with repeatedly being prompted by Copilot to sign in. It does seem to happen a bit more infrequently though. I have only signed in with GHE.
Feel free to close this and reopen one of the other issues.
VS Code version: Code 1.140.0 (07f806f999227108933c2e30515b26eecc1fda74, 2026-09-30T10:38:38+02:00) OS version: Windows_NT x64 10.0.26300 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) Ultra 5 336H (12 x 3686) |
| GPU Status | 2d_canvas: enabled GPU0: VENDOR= 0x8086, DEVICE=0xb0a0 [Intel(R) Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.8860 ACTIVE GPU1: VENDOR= 0x10de, DEVICE=0x2db9 [NVIDIA RTX PRO 500 Blackwell Generation Laptop GPU], DRIVER_VERSION=32.0.15.9608 GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.9278 Machine model name: Machine model version: direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 63.51GB (38.16GB free) |
| Process Argv | --crash-reporter-id c70c1793-2044-4880-bd42-cd8b931dcdf2 |
| Screen Reader | no |
| VM | 0% |
Extensions (11)
| Name | Identifier | Author | Version |
|---|---|---|---|
| Angular Language Service | angular.ng-template | Angular | 22.2.0 |
| C# Dev Kit | ms-dotnettools.csdevkit | ms-dotnettools | 3.40.210 |
| C# | ms-dotnettools.csharp | ms-dotnettools | 2.160.4 |
| .NET Install Tool | ms-dotnettools.vscode-dotnet-runtime | ms-dotnettools | 3.2.0 |
| Data Workspace | ms-mssql.data-workspace-vscode | ms-mssql | 0.7.0 |
| SQL Server (mssql) | ms-mssql.mssql | ms-mssql | 1.46.0 |
| SQL Bindings | ms-mssql.sql-bindings-vscode | ms-mssql | 0.4.1 |
| SQL Database Projects | ms-mssql.sql-database-projects-vscode | ms-mssql | 1.8.0 |
| PowerShell | ms-vscode.powershell | ms-vscode | 2025.4.0 |
| Codex – OpenAI’s coding agent | openai.chatgpt | openai | 26.930.51102 |
| Codex Audio | openai.codex-audio | openai | 26.930.51102 |
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
gh487529:31544284
cloudbuttont:31379625
3efgi100_wstrepl:31403338
55ia6109:31457054
ddidt:31399633
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
c9b86496:31447327
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
ec1eg703:31520046
ddid_t:31478206
hmra_i5g22:31518061
l_j1ci3728:31592441
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
ahp-both-windows:31556933
ihg5j128:31534457
9gg7f176:31542112
enable_editor_pane_layout:31569726
allow-none:31555437
36h42362:31564511
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
session-mark-done:31591648
multi-root:31593626
5b8j3302:31564601
autotiers:31584978
mangle-name-treatment:31572634
allow-signed-out:31592042
b17abb00-cfec-4134-90da-ee5e32ce4426:31589248
intellij_nes_preview_t:31580086
39a5d156:31574986
0ec91c74:31585910
accent:31581110
links-control:31587703
aw-autom-on:31583758
usage_tips_endabled_0911:31587631
7g328426_fixed:31593558
codex-agent-host-stable-control:31593045
skill-budget-15000:31593150
66c8a39e-e7a5-4b4c-a3c0-41b161c795c4:31586113
sessioninlinediffenabled_disabled:31587634
welcomesignin9359c:31590009
b169b0b1-b17e-475c-9032-91b9b24dde97:31589214
d6a5dc66-a24d-4215-bf31-317b28ac768a:31589212
c4jch183:31592431
edbgf432:31592435
I'm seeing the same issue too. Here's what I'm finding, not sure if you're also seeing the same?
If you have VS code completely closed and open a window, it doesn't pop up (because you are still signed in). Correct behaviour and fixed in 1.140.0!
But then if you open any additional VS code windows on top of the first one, for example if you are working in multiple workspaces at once, or are opening the extension host for extension development, the same popup as before still appears on the window that you opened first.
To reproduce:
- Open a folder in VS code, see no popup appears
- Now open a new VS code window and wait for all extensions to activate
- Tab back to the first VS code window
- See that the "sign in to use github copilot" window as incorrectly appeared
The workaround is the same as before - just press the X button in the top right of the popup, as your account is still signed in correctly.
I'm seeing the same issue too. Here's what I'm finding, not sure if you're also seeing the same?
If you have VS code completely closed and open a window, it doesn't pop up (because you are still signed in). Correct behaviour and fixed in 1.140.0!
But then if you open any additional VS code windows on top of the first one, for example if you are working in multiple workspaces at once, or are opening the extension host for extension development, the same popup as before still appears on the window that you opened first.
To reproduce:
- Open a folder in VS code, see no popup appears
- Now open a new VS code window and wait for all extensions to activate
- Tab back to the first VS code window
- See that the "sign in to use github copilot" window as incorrectly appeared
The workaround is the same as before - just press the X button in the top right of the popup, as your account is still signed in correctly.
Yes, that does sometimes reproduce it. In step 1 it seems I have to wait for the projects in the opened folder to open completely, otherwise nothing happens when opening a new window on top
Makes sense, it only pops up once all the extension activations are finished.
I am also facing this issue, has been around for ~1 week already.
Tried various fixes like signing out and back in, deleting .copilot folder, setting GH_HOST variable, enabling/disabling extension but nothing helped.
I have the same problem of prompting..
If I open project 1, sign in to Copilot, then open project 2, it prompts me in project 1 to do the login again.
Yeah, this is anoying, each time a new window of vscode is opened, it asks to ghe login.
Exact same is happening for me with a GHEC-DR instance
The frequency of the repeat sign in prompts has reduced since 1.140.0 but not to zero, I get roughly one per day
I pushed another fix which addresses a possible race condition- would appreciate hearing whether the next Insiders build addresses the issue for folks
12. I pushed another fix which addresses a possible race condition- would appreciate hearing whether the next Insiders build addresses the issue for folks
Downloaded VS Code Insiders to test and I don't seem to be getting the pop-up anymore. Will use it throughout the day and will report if I get one (if I don't, consider me quietly happy 🙂).
I think we have the same issue and I think it also exists in 1.141
Seeing this across many machines, sometimes right after successfully signing in.
Version: 1.142.0-insider (system setup) Commit: 363a43fb9eb3551f66ff60d5d12d14d9daa02300 Date: 2026-10-12T19:20:15Z (5 hrs ago) Electron: 43.7.7 ElectronBuildId: 15553055 Chromium: 150.0.7871.250 Node.js: 24.21.0 V8: 15.0.245.31-electron.0 @github/copilot: 1.0.95-0 @github/copilot-sdk: 1.0.19-preview.0 OS: Windows_NT x64 10.0.26100
Yeah, because this in fact not only affects GHE (I use regular GitHub), this is most likely just #336407, which was closed after a cheerful AI-written announcement of it having been fixed.
I've been getting this every single time I open a new workspace (in WSL if that matters): every time I use "Open Folder", once the new window has loaded to the point it tries to launch the Copilot extension, every single window prompts me to sign in - and doing so will only dismiss the dialog on the window from which the link was clicked so theoretically I'd have to do this N times when I have N windows open. Of course because I already am signed in I can just dismiss the login prompt and continue working but it still means I have to dimiss the login prompt on every single window every time I open a new window (sometimes also in between).
For the love of Roko's Basilisk, please review AI commits. I swear everything produced by US tech megacorps has been getting worse. Remember that you need to be smarter to read code than to write it - that goes doubly for reviewing other people's (or agents') code.
This appears to be fixed for me in 1.142.0 for GHE.
Version: 1.142.0 (system setup) Commit: 6d62b1d5dace93a33b3a6d3eca1317bd5e15bcb1 Date: 2026-10-15T03:02:17Z Electron: 43.7.7 ElectronBuildId: 15553055 Chromium: 150.0.7871.250 Node.js: 24.21.0 V8: 15.0.245.31-electron.0 @github/copilot: 1.0.95-0.unstable.r38345923974.g3754b70 @github/copilot-sdk: 1.0.19.38345923974.g3754b70 OS: Windows_NT x64 10.0.26200
17. This appears to be fixed for me in 1.142.0 for GHE. Version: 1.142.0 (system setup) Commit: 6d62b1d Date: 2026-10-15T03:02:17Z Electron: 43.7.7 ElectronBuildId: 15553055 Chromium: 150.0.7871.250 Node.js: 24.21.0 V8: 15.0.245.31-electron.0 @github/copilot: 1.0.95-0.unstable.r38345923974.g3754b70 @github/copilot-sdk: 1.0.19.38345923974.g3754b70 OS: Windows_NT x64 10.0.26200
I can also confirm the issue seems to be resolved in this version.
How can something fixed without a commit?
How can something fixed without a commit?
You can see the commit directly in this issue?
https://github.com/microsoft/vscode/commit/eef761e9628e777317a554114f0202a070e98f0b
I still have this issue with GHE in the latest version:
Version: 1.143.0 (Universal) Commit: 2d0b7506a36c1d6db9a466440131a8e01eab2289 Date: 2026-10-20T14:31:47-07:00 Electron: 43.7.7 ElectronBuildId: 15743441 Chromium: 150.0.7871.250 Node.js: 24.21.0 V8: 15.0.245.31-electron.0 @github/copilot: 1.0.100-1 @github/copilot-sdk: 1.0.23-preview.5 OS: Darwin arm64 27.0.0
Every single time I open a new window, all windows that are already open display the login prompt even though I'm already logged in. I just have to close it and Copilot continues to work as expected, but it's annoying when you have several projects open at once to always have to close it in every single one except the newest window.
21. I still have this issue with GHE in the latest version: Version: 1.143.0 (Universal) Commit: 2d0b750 Date: 2026-10-20T14:31:47-07:00 Electron: 43.7.7 ElectronBuildId: 15743441 Chromium: 150.0.7871.250 Node.js: 24.21.0 V8: 15.0.245.31-electron.0 @github/copilot: 1.0.100-1 @github/copilot-sdk: 1.0.23-preview.5 OS: Darwin arm64 27.0.0 Every single time I open a new window, all windows that are already open display the login prompt even though I'm already logged in. I just have to close it and Copilot continues to work as expected, but it's annoying when you have several projects open at once to always have to close it in every single one except the newest window.
I had the same happening to me (and I regularly have 6-8 different VS Code windows open) but for over a week nothing.
Try:
- logging out and back in (GHE)
- disabling copilot
- deleting ~/.copilot
Try:
* logging out and back in (GHE) * disabling copilot * deleting ~/.copilot
I tried those, but it didn't make a difference unfortunately.