[macOS][Sandbox] Hermes Desktop app fails to start against NemoClaw sandbox — "Expected JSON from /api/profiles/sessions but got HTML"
Description
NemoClaw provisions a Hermes sandbox running Hermes Agent v0.14.0 (release tag v2026.5.16). The current Hermes Desktop client (downloaded from https://hermes-agent.nousresearch.com/) connects to that sandbox's dashboard successfully but then fails to start, because the Desktop frontend calls /api/profiles/sessions — an endpoint the older sandbox backend does not implement. The backend returns the SPA HTML (status 200) instead of JSON, and Desktop aborts with "Hermes couldn't start."
There is no buildable Desktop version compatible with this sandbox backend: the Desktop app was introduced in v2026.6.5 (the same release that added /api/profiles/sessions), which is newer than the sandbox's v2026.5.16. So the fix has to come from the backend side — NemoClaw should provision a sandbox agent new enough for the Desktop client (or warn on connect), and/or Desktop should surface a clear version-mismatch message (cf. NVBug 4678652) instead of the opaque "got HTML" error.
Environment
Device: MacBook (Apple Silicon)
OS: macOS 26.5.1 (Darwin 25.5.0, arm64); other OS not tested
Architecture: arm64
Node.js: v22.22.3
npm: 10.9.8
Docker: Docker version 28.3.3, build 980b856816
OpenShell CLI: openshell 0.0.44 (docker driver)
NemoClaw: nemoclaw v0.0.68
Hermes (sandbox backend): Hermes Agent v0.14.0 = release v2026.5.16 (no /api/profiles/sessions)
Hermes Desktop (client): desktop 0.15.1 / hermes_cli 0.16.0 (commit b5f8996cc; release >= v2026.6.5)
Steps to Reproduce
- Provision a NemoClaw Hermes sandbox (
nemoclaw onboard); it runs Hermes Agent v0.14.0 (v2026.5.16). Dashboard athttp://127.0.0.1:18789/. - Install/launch the current Hermes Desktop app (
>= v2026.6.5). - Point Desktop at the sandbox —
~/Library/Application Support/Hermes/connection.json:
(token ={ "mode": "remote", "remote": { "url": "http://127.0.0.1:18789", "authMode": "token", "token": { "value": "<dashboard session token>", "encoding": "plaintext" } } }window.__HERMES_SESSION_TOKEN__from the dashboard HTML) - Launch Hermes Desktop.
Expected Result
Desktop connects to the sandbox Hermes and shows the chat / sessions UI. If the backend is too old for the client, Desktop should display a clear version-mismatch message (cf. NVBug 4678652), and/or NemoClaw should provision a sandbox agent version compatible with the shipped Desktop client (or warn on connect).
Actual Result
Desktop boots, connects (Remote Hermes backend is ready), then shows the "Hermes couldn't start" overlay:
Hermes couldn't start
The background gateway didn't come up. Try one of the recovery steps below.
Nothing here deletes your chats or settings.
Error invoking remote method 'hermes:api': Error: Expected JSON from
http://127.0.0.1:18789/api/profiles/sessions?limit=50&offset=0&min_messages=1&archived=exclude&order=recent&profile=default&exclude_sources=...
but got HTML (status 200). The endpoint is likely missing on the Hermes backend.
Logs
~/.hermes/logs/desktop.log:
[hermes] [boot] Connecting to remote Hermes backend at http://127.0.0.1:18789
[hermes] [boot] Remote Hermes backend is ready
Backend probes against the sandbox (token-authed):
GET /api/profiles/sessions -> HTTP 200, content-type text/html (SPA index.html; endpoint missing)
GET /api/sessions -> HTTP 200, application/json (works; returns sessions)
Source-history confirmation (NousResearch/hermes-agent):
- v2026.5.16 (sandbox): no apps/desktop/ dir; web_server.py has 0 refs to api/profiles/sessions.
- v2026.6.5 (first desktop, internal 0.16.0): adds apps/desktop/; web_server.py has /api/profiles/sessions; apps/desktop/src/hermes.ts calls it.
=> Every existing Desktop build requires a backend >= v2026.6.5; sandbox ships v2026.5.16.
In NemoClaw v0.0.69, new sandbox ships Hermes agent 2026.6.19 (the old broken one was v2026.5.16). That's well past the v2026.6.5 cutoff, so the backend now serves the endpoint the Desktop needs.
The agent is up running through Hermes Desktop.
Feel free to close this issue.