Bug Description
In hermes_cli/status.py, the Codex auth file path is fetched with codex_status.get("auth_file") (line 131), but get_codex_auth_status() in auth.py returns the path under the key "auth_store" (line 1220). The key mismatch means the auth file path is never displayed in hermes status output, even when logged in.
Steps to Reproduce
- Log in to Codex with
hermes login
- Run
hermes status
- Under "OpenAI Codex", the "Auth file:" line is missing
Expected Behavior
hermes status should display the auth file path when logged in to Codex, e.g.:
OpenAI Codex ✓ logged in
Auth file: /home/user/.hermes/auth.json
Actual Behavior
The "Auth file:" line never appears because status.py looks up "auth_file" but the dict returned by get_codex_auth_status() uses the key "auth_store".
Affected Component
CLI (interactive chat)
Messaging Platform (if gateway-related)
N/A (CLI only)
Operating System
Ubuntu 24.04
Python Version
3.11.9
Hermes Version
1.0.0
Relevant Logs / Traceback
Root Cause Analysis (optional)
Dict key mismatch between producer and consumer:
# auth.py line 1220 - returns "auth_store"
return {
"logged_in": True,
"auth_store": str(_auth_file_path()),
...
}
# status.py line 131 - looks up "auth_file"
codex_auth_file = codex_status.get("auth_file")
### Proposed Fix (optional)
Change `"auth_file"` to `"auth_store"` in `status.py` line 131 to match the key returned by `get_codex_auth_status()`.
### Are you willing to submit a PR for this?
- [x] I'd like to fix this myself and submit a PR
Bug Description
In
hermes_cli/status.py, the Codex auth file path is fetched withcodex_status.get("auth_file")(line 131), butget_codex_auth_status()inauth.pyreturns the path under the key"auth_store"(line 1220). The key mismatch means the auth file path is never displayed inhermes statusoutput, even when logged in.Steps to Reproduce
hermes loginhermes statusExpected Behavior
hermes statusshould display the auth file path when logged in to Codex, e.g.:Actual Behavior
The "Auth file:" line never appears because
status.pylooks up"auth_file"but the dict returned byget_codex_auth_status()uses the key"auth_store".Affected Component
CLI (interactive chat)
Messaging Platform (if gateway-related)
N/A (CLI only)
Operating System
Ubuntu 24.04
Python Version
3.11.9
Hermes Version
1.0.0
Relevant Logs / Traceback
Root Cause Analysis (optional)
Dict key mismatch between producer and consumer: