Hermes Desktop 0.4.3 remote mode fails against working local Hermes API server Bug:…
- User
Hermes Desktop 0.4.3 remote mode fails against working local Hermes API server
Bug: Hermes Desktop 0.4.3 fails to connect reliably to existing local Hermes API server
Summary
Hermes Desktop 0.4.3 fails to work as a frontend for an already-running local Hermes Agent API server.
The Hermes Agent backend is installed separately under
/opt/hermes-agent, runs correctly with Python 3.12, exposes the API server on127.0.0.1:8642, and successfully handles OpenAI-compatible API requests viacurl.However, Hermes Desktop fails to connect or send messages in remote mode. It either reports that it cannot reach the server, returns
404: Not Found, or tries to spawn a removed/incorrect local Hermes installation under~/.hermes/hermes-agent.Environment
- OS: Ubuntu 24.04.3 LTS
- Kernel: Linux 6.17.0-14-generic x86_64
- Desktop: KDE/Plasma
- Hermes Agent version: 0.14.0
- Hermes Desktop version: 0.4.3
- Hermes Agent install path:
/opt/hermes-agent - Hermes config/home:
~/.hermes - Python used by working Hermes Agent: Python 3.12.3
- GPU: NVIDIA RTX 5060 Ti, 16 GB VRAM
- Model backend: Ollama
- Ollama model:
gemma4:e4b - Ollama API endpoint:
http://127.0.0.1:11434/v1 - Hermes API server:
http://127.0.0.1:8642
Working backend configuration
Hermes Agent works correctly from CLI/API with this model configuration:
yaml - Assistant
Let me look at the connection config, main index, and cron jobs code.
- Assistant
Now let me look at where the gateway gets spawned in main index.ts and where remote connections are validated/saved.
- Assistant
Let me check models.ts and how the models list is fetched in remote mode, plus the Gateway screen behavior.
- Assistant
Now update
hermes.ts: - Assistant
Now update
testRemoteConnectionto normalize the URL and fall back to/v1/modelswhen/healthisn't available: - Assistant
Now update
config.tsso saved URLs are normalized and API-key preservation compares normalized forms: - Assistant
Now fix the cron 404 log spam for servers that don't expose
/api/jobs: - Assistant
Now let me check
installer.tsbriefly to understand test-time imports, then add tests: - Assistant
Now add coverage in
connection-config-security.test.tsfor the validation fallback and normalization-on-save: - Assistant
Now run the test suite:
- Assistant
The mock seems not to be intercepting the local-mode spawn. Let me debug quickly:
- Assistant
The
hermes-api.test.tserrors pre-exist on HEAD. I'll fix the 4 errors in my new file: - Assistant
All clean. Final verification pass:
- Assistant
All done. Typecheck passes, all 34 test files / 450 tests pass, and the only remaining lint errors are pre-existing ones in (verified present on HEAD before my change).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.