Found a solution—seems to be a bug. I'm never going to carelessly upgrade again.
Step 1: Restart the Codex background daemon
codex app-server daemon restart
Step 2: Check authentication
codex login status
Step 3: Start Codex again
codex
I have about four or five Codex accounts, and I used to switch to the next one after finishing with each. I hadn't upgraded in a long time. Today I carelessly clicked yes when it asked if I wanted to upgrade while switching accounts. And then this came up:
Your access token could not be refreshed because you have since logged out or signed in to another account. Please sign in again.
The OS is Ubuntu, and I'm using the CLI... Codex version is 0.167
Multi-account rotation was never officially supported to begin with. This upgrade most likely tightened the token refresh logic, treating "logout or switch account" as a state that requires re-authentication. The fact that restarting the daemon fixes it suggests the cached state and the background process are out of sync. But whether this command will keep working long-term is hard to say—the next minor update could change things again. I'd suggest holding off on enabling auto-updates for now.