Skip to content

Codex CLI login stuck on 'Sign in with ChatGPT' screen #8692

@christopher-hesse

Description

@christopher-hesse

What version of Codex is running?

codex-cli 0.77.0

What subscription do you have?

Pro

Which model were you using?

No response

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

It looks like I ran into the same issue as #2763. I have 2+ VSCode windows (using devcontainers) open, and they both are mapping local ports to 1455:

Image Image

While it says "User Forwarded", I don't recall making this forwards.

When I login via ChatGPT it hangs on this screen after hitting the continue button:

Image

Based on this comment:

#issuecomment-3403393675

I closed one of the windows (the first picture), and now get:

Image

I rebuilt the devcontainer in the window that was still open, but that didn't fix it (same error as above):

Image

Next I reopened the project in VSCode and relaunched the devcontainer but got the same issue. I closed all vscode windows, and then reopened the project + relaunched the devcontainer but still have the same issue. Rebooting computer didn't seem to fix it. Deleting the forwarded port and re-adding it fixed it though.

What steps can reproduce the bug?

I haven't tried to reproduce it, but likely logging into codex with two different vscode windows + devcontainers might do it.

What is the expected behavior?

I would expect it to work or provide a better error message, if possible.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIauthIssues related to authentication and accountsbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions