Skip to content

[Bug]: v0.15.0 Docker image:The TUI cannot be used in the dashboard. #34091

Closed

Description

@cexpnull

Bug Description

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:

  • HERMES_DASHBOARD=true
  • HERMES_DASHBOARD_TUI=1
Image

Steps to Reproduce

Deploy using Docker.

Expected Behavior

You can open the TUI in the dashboard.

Actual Behavior

Unable to open the TUI in the dashboard.

Affected Component

Other

Messaging Platform (if gateway-related)

No response

Debug Report

Report       https://paste.rs/sAGK9
  agent.log    https://paste.rs/ijbWB
  gateway.log  https://paste.rs/vyhfh

Operating System

docker

Python Version

No response

Hermes Version

0.15.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. ttomcat75 commented on May 28, 2026

    @ttomcat75

    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 --git a/hermes_cli/web_server.py b/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"/
    
    Happy to open a PR if helpful.
  2. added
    type/bugSomething isn't working
    P1High — major feature broken, no workaround
    comp/tuiTerminal UI (ui-tui/ + tui_gateway/)
    on May 29, 2026
  3. tecnocat commented on May 29, 2026

    @tecnocat

    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

  4. cexpnull commented on May 30, 2026

    @cexpnull
    Author

    I've verified that the fix in #35141 resolves the issue. Closing. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundarea/install-updateInstaller, updater, packaging, wheels, doctorcomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions