"Bricked" my VSCode with infinite "Do you want to open this external website" dialog boxes when starting, with no option to use API key
What version of Codex is running?
0.45.0
Which model were you using?
_No response_
What platform is your computer?
ubuntu 24.04
What steps can reproduce the bug?
I start it with:
npm install -g @openai/codex && codex --ask-for-approval never --sandbox danger-full-access
and for some reason it tries to open the login link right away. But that doesn't work for me because I'm opening it inside a docker image during a remote ssh VSCode session. So I click cancel. Previously if I clicked cancel about 5 times it would stop, but now it just keeps opening the dialog forever every time I click cancel.
<img width="1368" height="621" alt="Image" src="https://github.com/user-attachments/assets/ee9ab7a7-f658-4075-9d18-6d1ca4d292ec" />
What is the expected behavior?
It should show the selector "login with account" and "use API key" at the start. It shouldn't try to open the login link right away. And if I do select login, then when I cancel, it should actually cancel, instead of spamming me with infinite external-link-open calls.
What do you see instead?
Infinite external-link-open calls the moment I run codex.
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗