You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: v0.15.0 Docker image:The TUI cannot be used in the dashboard. #34091
After updating to v0.15.0, I cannot use my TUI in the dashboard.
When I open the conversation page in the dashboard, the right side shows an error: "events feed disconnected — tool calls may not appear."
In the previous version (v0.14.0), access was still normal. Only after updating the Docker image and restarting, I found that the TUI cannot be used.
The Docker container maps port 9119, and then I access the Docker service on the server (Linux) from my Windows computer. That's the situation.
docker env:
Hit this in v0.15.0 with Docker Desktop on Windows. Dashboard chat tab shows "events feed disconnected — tool calls may not appear" immediately on load.
Root cause: _ws_client_is_allowed() in hermes_cli/web_server.py requires the WS peer IP to be in _LOOPBACK_HOSTS when the OAuth gate isn't engaged. With --insecure + bind 0.0.0.0 inside a container, Docker NATs the source IP to the bridge gateway (e.g. 172.23.0.1), which fails the check → every /api/events upgrade closes with code 4403.
The HTTP Host/Origin guard (_is_accepted_host) already has a "bound to 0.0.0.0 → accept any host" carve-out — the peer-IP check is the only place still enforcing loopback in that mode.
Proposed fix mirrors the existing semantics:
``` diff--gita/hermes_cli/web_server.pyb/hermes_cli/web_server.py---a/hermes_cli/web_server.py+++b/hermes_cli/web_server.py
@@ -3390,6+3390,17 @@ def_ws_client_is_allowed(ws: "WebSocket") ->bool:
"""
if getattr(app.state, "auth_required", False):
return True
+ # When the dashboard is bound to a non-loopback interface (e.g. 0.0.0.0
+ # inside a Docker container with --insecure), the operator has explicitly
+ # opted into LAN-accessible mode. Docker port-forwarding NATs the source
+ # IP to the bridge gateway (172.x.x.x), which is not in _LOOPBACK_HOSTS
+ # and would otherwise close every WS upgrade with code 4403, causing the
+ # browser to show "events feed disconnected". Mirror the existing
+ # bound-host opt-in semantics from _is_accepted_host(): if we bound to a
+ # public interface, accept any client. The ?token= equality check below
+ # still applies in _ws_auth_ok().
+ bound_host = getattr(app.state, "bound_host", None)
+ if bound_host and bound_host not in _LOOPBACK_HOST_VALUES:
+ return True
client_host = ws.client.host if ws.client else ""
if not client_host:
return True/
Tested locally via bind-mount of the patched web_server.py into the container — chat tab connects, /api/events WebSocket stays open, tool calls stream into the sidebar as expected. ?token= equality in _ws_auth_ok() still guards every upgrade, so no auth bypass introduced.
**Repro:**
```python
``` docker run --rm \
-e HERMES_DASHBOARD=1 \
-e HERMES_DASHBOARD_HOST=0.0.0.0 \
-e HERMES_DASHBOARD_TUI=1 \
-p 9119:9119 \
nousresearch/hermes-agent:latest
# open http://localhost:9119 → Chat tab → "events feed disconnected"/HappytoopenaPRifhelpful.
This happens on normal installations (Debian 13 host) on older/current versions.
Root cause:
Dashboard WebSocket IP-check bug. When binding --host to a specific LAN IP (e.g., 192.168.1.14) instead of 0.0.0.0 or 127.0.0.1, the WS connection drops (HTTP 403).
Function _ws_client_is_allowed() rejects WS connections from non-loopback IPs because _is_public_bind() strictly checks for 0.0.0.0 or ::, failing to recognize specific LAN IPs as public binds even when --insecure is passed. This breaks the /api/events feed (tool calls don't show in UI).
Local process currently running and reproducing this (via top -c / systemctl): .../venv/bin/python -m hermes_cli.main dashboard --host 192.168.1.14 --insecure --no-open --skip-build --tui
Workaround:
Bind to 0.0.0.0 instead: --host 0.0.0.0 --insecure
Activity
ttomcat75 commentedon May 28, 2026
Hit this in v0.15.0 with Docker Desktop on Windows. Dashboard chat tab shows "events feed disconnected — tool calls may not appear" immediately on load.
Root cause: _ws_client_is_allowed() in hermes_cli/web_server.py requires the WS peer IP to be in _LOOPBACK_HOSTS when the OAuth gate isn't engaged. With --insecure + bind 0.0.0.0 inside a container, Docker NATs the source IP to the bridge gateway (e.g. 172.23.0.1), which fails the check → every /api/events upgrade closes with code 4403.
The HTTP Host/Origin guard (_is_accepted_host) already has a "bound to 0.0.0.0 → accept any host" carve-out — the peer-IP check is the only place still enforcing loopback in that mode.
Proposed fix mirrors the existing semantics:
tecnocat commentedon May 29, 2026
This happens on normal installations (Debian 13 host) on older/current versions.
Root cause:
Dashboard WebSocket IP-check bug. When binding
--hostto a specific LAN IP (e.g.,192.168.1.14) instead of0.0.0.0or127.0.0.1, the WS connection drops (HTTP 403).Function
_ws_client_is_allowed()rejects WS connections from non-loopback IPs because_is_public_bind()strictly checks for0.0.0.0or::, failing to recognize specific LAN IPs as public binds even when--insecureis passed. This breaks the/api/eventsfeed (tool calls don't show in UI).Local process currently running and reproducing this (via
top -c/systemctl):.../venv/bin/python -m hermes_cli.main dashboard --host 192.168.1.14 --insecure --no-open --skip-build --tuiWorkaround:
Bind to
0.0.0.0instead:--host 0.0.0.0 --insecurecexpnull commentedon May 30, 2026
I've verified that the fix in #35141 resolves the issue. Closing. Thanks!