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 other relevant files — the connection config, cron jobs, and main index where the gateway is spawned.
- Assistant
Now let me look at the renderer side — the remote connect flow in Setup/Welcome, and how models are listed in remote mode.
- Assistant
Let me check the tests directory and Settings.tsx remote section:
- Assistant
Now
testRemoteConnection— probe the normalized base, with a/v1/healthfallback: - Assistant
Good. Now the gateway guards and the missing spawn
errorhandler: - Assistant
Now the cron 404 handling — a plain OpenAI-compatible API server doesn't expose
/api/jobs, so treat 404 as "unsupported" instead of logging an error on every poll: - Assistant
Update the English hint so the accepted URL forms are documented:
- Assistant
Now let me check how the Models/model selection works in remote mode — the issue also mentions the remote model isn't listed:
- Assistant
All 8 new tests pass. Now run the full test suite and typecheck:
- Assistant
The existing
hermes-api.test.tsmocks the config module and needs the new export added to its mock: - Assistant
All 443 tests pass and typecheck is clean. Run lint on the changed files:
- Assistant
The repo has 56 pre-existing lint errors on HEAD, so I'll just fix the warnings my changes introduced. Prettier-format my new test file and fix my added mock:
- Assistant
No new lint issues introduced. Final check — the new test file and the full suite once more:
- Assistant
Everything is green. Let me review the final diff:
- Assistant
Fixed. The bug had three distinct root causes, all now addressed:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.