Summary
When I add another account through codex-multi-auth login, the CLI reports Added account, but if the login is for a different workspace on the same email, the saved account count does not increase.
Instead, the existing saved entry for that email/account family appears to be refreshed or overwritten.
Actual behavior
I can reproduce this with multiple workspaces under the same email:
- Run
codex-multi-auth login
- Choose
Open Browser (Easy) or Manual / Incognito
- Log into a different workspace using the same underlying email
- The CLI prints:
Added account. Total: 3
Next steps:
codex-multi-auth status
codex-multi-auth check
codex-multi-auth list
- After exiting the flow and running
codex-multi-auth status, the total is still 3
- The newly added workspace did not become a separate saved slot; an existing entry appears to have been updated instead
Expected behavior
One of these should happen consistently:
- If workspace-scoped accounts are intended to be distinct, adding a different workspace on the same email should create a separate saved entry
- If same-email workspaces are intentionally merged, the login flow should not say
Added account when it is actually updating/rebinding an existing saved entry
Right now the UX strongly suggests a new saved account was created, but local storage remains flat.
Local observations
On my machine, repeated browser logins for a different workspace on the same email updated existing saved identities instead of appending a new one.
The stored pool remained at 3 accounts even after successfully completing additional browser logins.
This seems related to deduplication/matching on save rather than a failed OAuth callback.
Why this is confusing
For users with:
- one email
- multiple ChatGPT/OpenAI workspaces
it looks like the tool supports adding another account/workspace, but the saved account count and final stored state do not reflect that mental model.
Suggested fix
At minimum, the login flow should distinguish between:
Added account
Updated existing account
Rebound workspace for existing account
If per-workspace saved entries are a supported goal, then same-email workspaces should be representable as distinct stored entries.
Environment
codex-multi-auth: 2.2.2
- Official Codex CLI in use through the multi-auth wrapper
- Reproduced on macOS
Additional context
I also observed that status and the dashboard can present slightly different-looking account ordering/state, which makes this even harder to understand during testing. The core bug here, though, is that the browser flow reports Added account while the stored account total does not increase for same-email different-workspace logins.
Summary
When I add another account through
codex-multi-auth login, the CLI reportsAdded account, but if the login is for a different workspace on the same email, the saved account count does not increase.Instead, the existing saved entry for that email/account family appears to be refreshed or overwritten.
Actual behavior
I can reproduce this with multiple workspaces under the same email:
codex-multi-auth loginOpen Browser (Easy)orManual / Incognitocodex-multi-auth status, the total is still3Expected behavior
One of these should happen consistently:
Added accountwhen it is actually updating/rebinding an existing saved entryRight now the UX strongly suggests a new saved account was created, but local storage remains flat.
Local observations
On my machine, repeated browser logins for a different workspace on the same email updated existing saved identities instead of appending a new one.
The stored pool remained at
3accounts even after successfully completing additional browser logins.This seems related to deduplication/matching on save rather than a failed OAuth callback.
Why this is confusing
For users with:
it looks like the tool supports adding another account/workspace, but the saved account count and final stored state do not reflect that mental model.
Suggested fix
At minimum, the login flow should distinguish between:
Added accountUpdated existing accountRebound workspace for existing accountIf per-workspace saved entries are a supported goal, then same-email workspaces should be representable as distinct stored entries.
Environment
codex-multi-auth:2.2.2Additional context
I also observed that
statusand the dashboard can present slightly different-looking account ordering/state, which makes this even harder to understand during testing. The core bug here, though, is that the browser flow reportsAdded accountwhile the stored account total does not increase for same-email different-workspace logins.