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

[bug] Add new account in incognito mode fails

Open haf opened this issue 3 months ago • 2 comments

Summary

  1. codex-multi-auth login
  2. manual/incognito copy url to firefox https://auth.openai.com/oauth/author...
  3. log in
  4. copy return url: http://localhost:1455/auth/callback?code=ac_u...
  5. paste into terminal; get error Login failed: OAuth state mismatch. That callback URL was generated for a different login attempt. Restart login and paste the callback URL from this attempt. - expected it to use the authz code instead of failing

Environment

  • codex --version: codex-cli 0.146.0
  • codex-multi-auth status output summary:
Accounts (4)
Storage: /Users/h/.codex/openai-codex-accounts.json
Selection reason: account 3 (Lowest risk ready account (low, score 0).)
Storage health: healthy
Runtime: responses=0, refresh=0, probes=125, budgetExhaustions=0
Last runtime account: Account 1
Runtime in use: account 1 (runtime-observability)
  • npm ls -g codex-multi-auth:
/Users/h/.nvm/versions/node/v24.13.1/lib
└── [email protected]
  • OS: macOS 26.1 (25B78)

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.

haf avatar Aug 06 '26 10:08 haf

🔗 Related PRs

ndycode/codex-multi-auth#132 - add manual login mode for headless auth flows [merged] ndycode/codex-multi-auth#441 - Add device auth login flow [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] ndycode/codex-multi-auth#561 - test: cover runAuthLogin transports, org threading, and cap handling [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 Aug 06 '26 10:08 coderabbitai[bot]

same problem

arvkonstantin avatar Aug 06 '26 11:08 arvkonstantin