But trying to use it in a workspace says "Please contact your workspace admin to enable device code authentication". It's not obvious that this setting actually exists, and OpenAI's chat support says, and I quote, "The latest updates require device code authentication, which works for personal ChatGPT accounts but does not work for workspace (Business/Enterprise/Edu) users."
An actual human at OpenAI closed the relevant issue as "not planned": https://github.com/openai/codex/issues/9253
Did OpenAI really just decide that it doesn't need to be possible to use the codex CLI on a paid workspace plan?
But yeah honestly I've never seen any other repo with so many important issues that are just being closed without fixes.
But good news: you can fake out codex-rs into thinking it's not headless by unsetting all SSH environment variables and setting DISPLAY=foo to recover the old behavior.