codex-multi-auth icon indicating copy to clipboard operation
codex-multi-auth copied to clipboard

[bug] Windows and WSL installs appear to conflict during OAuth login

Open sabmark opened this issue 4 months ago โ€ข 1 comments

Summary

I installed codex-multi-auth on Windows and it initially worked correctly. After installing it separately inside WSL Debian, the login flow in WSL did not work. After that, my already-working Windows install also stopped working.

When I uninstalled the Windows-side codex-multi-auth install, the WSL Debian login started working.

This makes it look like installing/running codex-multi-auth in both Windows and WSL on the same machine can conflict, possibly because both environments use the same OAuth callback port, browser redirect, runtime state, or auth state.

Reproduction

  1. Install codex-multi-auth on Windows.
  2. Run codex-multi-auth login on Windows.
  3. Confirm Windows login works.
  4. Install codex-multi-auth separately inside WSL Debian.
  5. Run codex-multi-auth login inside WSL Debian.
  6. WSL login does not work.
  7. After the WSL login attempt, the previously working Windows install no longer works.
  8. Uninstall/remove the Windows-side codex-multi-auth install.
  9. Retry/check WSL login.
  10. WSL login now works.

Expected Behavior

Windows and WSL installs should either work independently on the same machine, or the tool should clearly detect the conflict and print guidance explaining that only one install/runtime should be active.

Ideally, Windows and WSL could use separate callback ports/state paths per environment, or the docs could explain the supported setup.

Actual Behavior

Having both Windows and WSL installs present appears to break login/auth behavior. Removing the Windows install allowed the WSL install to work.

Environment

  • codex --version: not captured yet
  • codex-multi-auth status output summary: not captured yet
  • codex-multi-auth rotation status output summary, if runtime rotation is involved: not captured yet
  • npm ls -g codex-multi-auth: not captured yet
  • OS: Windows host with WSL Debian
  • Node.js: not captured yet

Diagnostic Outputs

I can provide these if useful:

  • codex-multi-auth check
  • codex-multi-auth report --json
  • codex-multi-auth doctor --json
  • Windows and WSL checks for listeners on port 1455 during login

Logs (Optional)

No logs included yet. I can provide sanitized logs from ~/.codex/multi-auth/logs/codex-plugin/ if needed.

Possible Cause

The README/troubleshooting docs mention that OAuth callback failures can happen on port 1455. Since Windows and WSL can share localhost/port behavior, this might be a callback listener conflict when both installs are present.

It may also involve shared browser redirects: WSL launches or uses the Windows browser, but the callback may return to the Windows-side listener or stale Windows auth/runtime state instead of the WSL listener.

Suggested Improvement

Please consider documenting or handling Windows + WSL side-by-side installs explicitly, especially around:

  • OAuth callback port selection
  • WSL browser redirect behavior
  • whether Windows and WSL installs are supported at the same time
  • how to recover when one install breaks the other

Compliance Confirmation

  • [x] I am using this project for personal development workflows.
  • [x] This report does not request policy bypasses or prohibited usage.
  • [x] I removed any secrets/tokens from this report.

sabmark avatar Jul 13 '26 19:07 sabmark

๐Ÿ”— Related PRs

ndycode/codex-multi-auth#391 - support native Codex CLI installs [merged] ndycode/codex-multi-auth#458 - Fix npm bin collision with official Codex [merged] ndycode/codex-multi-auth#513 - fix(login): report Updated/Rebound, persist workspaces, and surface manual-callback errors (#512) [merged]


๐Ÿ“ Issue Planner

Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

  • [ ] Create Plan

๐Ÿงช Issue enrichment is currently in open beta.

To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

issue_enrichment:
  auto_enrich:
    enabled: false

๐Ÿ’ฌ Have feedback or questions? Drop into our discord!

coderabbitai[bot] avatar Jul 13 '26 19:07 coderabbitai[bot]