Skip to content

hermes doctor reports stale ui-tui npm vulnerability and false-positive gemini (invalid API key) #48689

Description

@mbobele

Bug report: hermes doctor reports stale ui-tui npm vulnerability and false-positive gemini (invalid API key)

Environment

  • OS: macOS
  • Hermes home: /Users/bobele/.hermes
  • Node: /Users/bobele/.hermes/node/bin/node (v22.22.3)
  • npm: /Users/bobele/.hermes/node/bin/npm (v10.9.8)
  • Hermes: 0.16.0

Description

hermes doctor continues reporting two issues even though the underlying conditions are fixed or working:

  1. ui-tui workspace has 1 npm vulnerability
  2. gemini (invalid API key)

Observed behavior

hermes doctor outputs:

  Found 3 issue(s) to address:

  1. ui-tui workspace has 1 npm vulnerability
  2. Check GOOGLE_API_KEY in .env
  3. Run 'hermes setup' to configure missing API keys for full tool access

  ✗ gemini (invalid API key)

Actual state when this was reproduced

  • ~/.hermes/.env contains valid GOOGLE_API_KEY and GEMINI_API_KEY
  • hermes chat -q "reply ok" -m gemini-3.1-flash-lite returns ok
  • /Users/bobele/.hermes/node/bin/npm --prefix /Users/bobele/.hermes/hermes-agent audit --omit=dev --json returns 0 vulnerabilities
  • hermes doctor --fix does not change the reported issues

Steps to reproduce

  1. Configure Google Gemini in Hermes setup or .env
  2. Run hermes chat -q "reply ok" -m gemini-3.1-flash-lite
  3. Run hermes doctor
  4. Observe stale ui-tui npm warning despite clean npm audit
  5. Observe false-positive gemini (invalid API key) despite successful chat response

Expected behavior

  • hermes doctor should reflect current npm audit results for ui-tui / hermes-agent
  • hermes doctor should not report invalid API key when Gemini calls succeed
  • Repetitive guidance like Run 'hermes setup' to configure missing API keys for full tool access should not remain after setup/auth is saved

Suggested fix

  • Recompute npm workspace checks against the detected/active Node/npm
  • Align the Gemini connectivity probe with the runtime provider/model path
  • Clear false-positive auth warnings when a successful API call has already validated credentials

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/install-updateInstaller, updater, packaging, wheels, doctorcomp/cliCLI entry point, hermes_cli/, setup wizardprovider/geminiGoogle Gemini (AI Studio, Cloud Code)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions