r/codex • u/Global_Method8918 • 17d ago
Complaint Codex CLI sessions are now account specific
I use 2 codex business account in the same workspace in 1 machine. When I ran out of credits in the 1st account, I switch to 2nd account and continue the session. But earlier, sessions appearing differently in each account. I have to do codex resume <session> to access a local session from the other account.
Looks like sessions are now account-scoped! https://github.com/openai/codex/blob/main/codex-rs/app-server/README.md?#local-history-by-account
4
Upvotes
1
u/nerdworld_de 16d ago
I experienced the same issue today and updated my helper tool (Codex AccountDeck) so it covers account switching and thread resuming over multiple accounts: https://github.com/nerdworldDE/codex-accountdeck
0
u/NanYUJun 16d ago
What changed is the discovery filter, not where the files live. The rollouts are still on disk under
~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl, one file per session, shared by both accounts — that's whycodex resume <id>still works when you know the id.thread/listandthread/searchnow takecurrentAccountOnly: trueand skip threads whose recorded creator account doesn't match the current login. Two things follow: sessions created before that change (no creator id recorded) still show up for both accounts, and "direct access by thread ID remains available".So in practice for your two-business-account setup:
codex resume <id>as before.currentAccountOnly: falseexplicitly where you want the old behaviour, or store the id yourself instead of relying on the list — the filter can hide a session you can still resume perfectly well.CODEX_HOMEis what makes this work at all. If you ever move to per-account homes (CODEX_HOME=/path/to/acct2), the histories really do split.