The Codex CLI kept prompting for re‑authentication each time it started, so I restarted the background server.
Every time the Codex CLI was launched, the sign‑in screen appeared immediately. I isolated the authentication state from the background server and recorded the steps until the issue was resolved by restarting the server.