[bug] Add new account in incognito mode fails
Summary
codex-multi-auth login- manual/incognito copy url to firefox
https://auth.openai.com/oauth/author... - log in
- copy return url:
http://localhost:1455/auth/callback?code=ac_u... - 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.0codex-multi-auth statusoutput 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.
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 (🔗 Related PRs
#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!
same problem