I started getting the following error when running codex-auth login on Windows:
PS C:\Windows\System32> codex-auth login
WARNING: proceeding, even though we could not update PATH:
CODEX_HOME points to "C:\\Users\\ntusername\\.codex\\accounts\\login-xxxxxxxxxxxx",
but that path does not exist
Error loading configuration:
CODEX_HOME points to "C:\\Users\\ntusername\\.codex\\accounts\\login-xxxxxxxxxxxx",
but that path does not exist
What is confusing
This started happening suddenly, without:
- reinstalling
codex-auth
- changing environment variables manually
- moving any Codex-related directories
- intentionally modifying my local configuration
The referenced directory no longer exists, but I do not know why CODEX_HOME is still pointing to it.
Questions
- Is there any known scenario where
CODEX_HOME can become stale or invalid by itself?
- Does
codex-auth require manual reconfiguration in this situation?
- Is there a recommended way to recover from this without completely reinstalling everything?
- Should
codex-auth login automatically recreate or repair the referenced directory if it is missing?
Additional context
The path looks like a previous login/account identifier. Could an account migration, token cleanup, or automatic cache cleanup have removed the directory while leaving the CODEX_HOME environment variable unchanged?
Environment
- Windows
- Shell: PowerShell
codex-auth version: codex-auth 0.3.0-alpha.8
I started getting the following error when running
codex-auth loginon Windows:What is confusing
This started happening suddenly, without:
codex-authThe referenced directory no longer exists, but I do not know why
CODEX_HOMEis still pointing to it.Questions
CODEX_HOMEcan become stale or invalid by itself?codex-authrequire manual reconfiguration in this situation?codex-auth loginautomatically recreate or repair the referenced directory if it is missing?Additional context
The path looks like a previous login/account identifier. Could an account migration, token cleanup, or automatic cache cleanup have removed the directory while leaving the
CODEX_HOMEenvironment variable unchanged?Environment
codex-authversion: codex-auth 0.3.0-alpha.8