Issue: `codex login` hangs on MSYS2

Resolved 💬 2 comments Opened Nov 20, 2025 by huangsen365 Closed Feb 8, 2026

What version of Codex is running?

codex-cli 0.60.1

What subscription do you have?

Pro

Which model were you using?

gpt-5 and above

What platform is your computer?

MINGW64_NT-10.0-19044 3.6.5-0eeda3e1.x86_64 x86_64 unknown

What issue are you seeing?

Issue: codex login hangs on MSYS2

Environment:

Problem:
Running:

codex login

opens the browser and redirects to:

http://localhost:1455/auth/callback?code=XXXXXX

but the CLI never completes login and hangs waiting for the callback.

Notes:

  • Works normally in Windows CMD and PowerShell.
  • Fails only inside MSYS2 / MINGW64.

Expected:
CLI should capture the callback and finish authentication.

Actual:
CLI hangs indefinitely with no error.

What steps can reproduce the bug?

Issue: codex login hangs on MSYS2

Environment:

Problem:
Running:

codex login

opens the browser and redirects to:

http://localhost:1455/auth/callback?code=XXXXXX

but the CLI never completes login and hangs waiting for the callback.

Notes:

  • Works normally in Windows CMD and PowerShell.
  • Fails only inside MSYS2 / MINGW64.

Expected:
CLI should capture the callback and finish authentication.

Actual:
CLI hangs indefinitely with no error.

What is the expected behavior?

Issue: codex login hangs on MSYS2

Environment:

Problem:
Running:

codex login

opens the browser and redirects to:

http://localhost:1455/auth/callback?code=XXXXXX

but the CLI never completes login and hangs waiting for the callback.

Notes:

  • Works normally in Windows CMD and PowerShell.
  • Fails only inside MSYS2 / MINGW64.

Expected:
CLI should capture the callback and finish authentication.

Actual:
CLI hangs indefinitely with no error.

Additional information

Issue: codex login hangs on MSYS2

Environment:

Problem:
Running:

codex login

opens the browser and redirects to:

http://localhost:1455/auth/callback?code=XXXXXX

but the CLI never completes login and hangs waiting for the callback.

Notes:

  • Works normally in Windows CMD and PowerShell.
  • Fails only inside MSYS2 / MINGW64.

Expected:
CLI should capture the callback and finish authentication.

Actual:
CLI hangs indefinitely with no error.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗