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:
ui-tui workspace has 1 npm vulnerability
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
- Configure Google Gemini in Hermes setup or
.env
- Run
hermes chat -q "reply ok" -m gemini-3.1-flash-lite
- Run
hermes doctor
- Observe stale
ui-tui npm warning despite clean npm audit
- 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
Bug report:
hermes doctorreports staleui-tuinpm vulnerability and false-positivegemini (invalid API key)Environment
/Users/bobele/.hermes/Users/bobele/.hermes/node/bin/node(v22.22.3)/Users/bobele/.hermes/node/bin/npm(v10.9.8)0.16.0Description
hermes doctorcontinues reporting two issues even though the underlying conditions are fixed or working:ui-tui workspace has 1 npm vulnerabilitygemini (invalid API key)Observed behavior
hermes doctoroutputs:Actual state when this was reproduced
~/.hermes/.envcontains validGOOGLE_API_KEYandGEMINI_API_KEYhermes chat -q "reply ok" -m gemini-3.1-flash-litereturnsok/Users/bobele/.hermes/node/bin/npm --prefix /Users/bobele/.hermes/hermes-agent audit --omit=dev --jsonreturns 0 vulnerabilitieshermes doctor --fixdoes not change the reported issuesSteps to reproduce
.envhermes chat -q "reply ok" -m gemini-3.1-flash-litehermes doctorui-tuinpm warning despite cleannpm auditgemini (invalid API key)despite successful chat responseExpected behavior
hermes doctorshould reflect current npm audit results forui-tui/hermes-agenthermes doctorshould not reportinvalid API keywhen Gemini calls succeedRun 'hermes setup' to configure missing API keys for full tool accessshould not remain after setup/auth is savedSuggested fix