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
Now let me look at the other relevant files — cronjobs, index, config:
- Assistant
Let me check the tests directory and Settings.tsx connection test flow:
- Assistant
Now
hermes.ts: - Assistant
Now guard
startGatewayagainst remote mode and handle spawn errors: - Assistant
Now let me check the Gateway screen so the UI doesn't offer to start a local gateway in remote mode, and look at
Settings.tsxconnection section: - Assistant
Static import interception works. Let me test the dynamic-import-after-resetModules pattern:
- Assistant
importOriginalwas the culprit. Let me check whichchild_processexports the transitively-loaded modules need: - Assistant
Now fix the
configmock inhermes-api.test.tsto exportnormalizeRemoteUrl: - Assistant
All targeted tests pass. Now run the full test suite plus typecheck and lint:
- Assistant
The warnings in
src/mainare pre-existing. Let me fix the one prettier warning my edit introduced inhermes-api.test.ts: - Assistant
Both URL forms now work, but let me still clarify the UI hint per the issue's documentation request. Check the other locales:
- Assistant
The prettier fix just re-wrapped the pre-existing
remoteHintlines (content unchanged). Final verification: - Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.