Skip to content

[Bug]: hermes status never shows Codex auth file path due to wrong dict key #447

@PercyDikec

Description

@PercyDikec

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

  1. Log in to Codex with hermes login
  2. Run hermes status
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions