[VS Code] Codex repeatedly triggers GitHub “Select an account” dialog when multiple accounts are configured
What version of the IDE extension are you using?
26.721.41059
What subscription do you have?
ChatGPT Prolite
Which IDE are you using?
Visual Studio Code (desktop)
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
The official Codex VS Code extension (openai.chatgpt) repeatedly triggers the native GitHub “Select an account” dialog during normal editor use.
The dialog appears without any GitHub action being initiated by me. In some cases, it opens and then closes immediately before an account can be selected. In other cases, it remains open and interrupts my work.
Two GitHub accounts are intentionally signed into VS Code. This is a required and working configuration, not an authentication mistake.
I initially disabled the “GitHub Pull Requests and Issues” extension, but the unwanted dialog continued to appear.
I then ran VS Code’s built-in Extension Bisect. Extension Bisect identified openai.chatgpt as the extension causing the problem. With Codex disabled by the bisect process, the issue was no longer reproducible during the same workflow.
The repeated dialog steals focus and makes normal use of VS Code unreliable.
What steps can reproduce the bug?
- Sign in to two GitHub accounts in Visual Studio Code.
- Install and enable the official Codex extension (
openai.chatgpt) version 26.721.41059. - Open a multi-root workspace containing several local Git repositories.
- Use VS Code normally with Codex active. No pull request, GitHub command, account change, or manual authentication action is required.
- Wait for background extension activity.
- Observe that the native GitHub “Select an account” dialog appears unexpectedly.
- In some occurrences, the dialog closes automatically almost immediately.
- Disable “GitHub Pull Requests and Issues” and reload VS Code: the issue can still occur.
- Run “Help: Start Extension Bisect”.
- Complete the bisect process.
- Observe that VS Code identifies
openai.chatgptas the extension causing the problem. - Keep Codex disabled and repeat the normal workflow: the dialog is no longer reproducible.
The issue is intermittent, so it may take several minutes to appear.
What is the expected behavior?
Codex should not request a GitHub account unless I explicitly initiate an operation that requires GitHub authentication.
It must not repeatedly open the GitHub account selector, steal editor focus, or open and immediately close the dialog.
Multiple intentionally configured GitHub accounts should remain usable without Codex triggering unsolicited authentication prompts.
Additional information
Extension ID: openai.chatgpt
Extension version: 26.721.41059
IDE: Visual Studio Code desktop
Operating system: Windows x64
Relevant observations:
- Two GitHub accounts are intentionally configured.
- No GitHub account was being added, removed, or changed when the dialog appeared.
- No pull request or issue operation was initiated.
- Disabling “GitHub Pull Requests and Issues” did not resolve the problem.
- VS Code Extension Bisect identified
openai.chatgpt. - The problem was not reproducible while Codex was disabled by Extension Bisect.
- The dialog sometimes appears and closes immediately.
- Screenshots of the account selector and the Extension Bisect result are attached.
1 Comment
<img width="551" height="156" alt="Image" src="https://github.com/user-attachments/assets/d900fa48-0059-42fb-8f82-3e0f66cdbb05" />