hermes - ✅(Solved) Fix [Feature]: Make chat tab in web dashboard work with --host set to non-localhost address [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#15731Fetched 2026-04-26 05:25:29
View on GitHub
Comments
0
Participants
1
Timeline
6
Reactions
0
Participants
Timeline (top)
labeled ×4cross-referenced ×2

Fix Action

Fixed

PR fix notes

PR #15736: feat(cli): add --insecure-chat flag for non-loopback WS chat clients

Description (problem / solution / changelog)

What does this PR do?

The embedded TUI Chat tab (hermes dashboard --tui) rejects WebSocket connections from non-loopback IPs to prevent unauthorized remote access to the PTY. This is correct for localhost-only use, but blocks usage over Tailscale, VPNs, or LAN when the dashboard is intentionally bound to a non-loopback address with --insecure.

Add --insecure-chat which, when combined with --tui, skips the ws.client.host loopback check on all chat WebSocket endpoints:

  • /api/pty
  • /api/ws
  • /api/pub
  • /api/events

Update the web-dashboard docs to document the new flag, clarify that the Chat tab only appears when --tui is passed.

Related Issue

#15731

Type of Change

  • ✨ New feature (non-breaking change that adds functionality)

Changes Made

<!-- List the specific changes. Include file paths for code changes. -->
  • Add --insecure-chat flag parsing: hermes_cli/main.py
  • Skip checks when --insecure-chat flag is passed: hermes_cli/web_server.py
  • Document new flag, clarify that --tui flag in hermes dashboard command: website/docs/user-guide/features/web-dashboard.md

How to Test

<!-- Steps to verify this change works. For bugs: reproduction steps + proof that the fix works. -->
  1. run hermes dashboard --tui --host 0.0.0.0 --insecure --insecure-chat
  2. go to chat tab in Hermes web dashboard (use non-loopback ip address of the host)
  3. confirm you can chat with the agent

Checklist

<!-- Complete these before requesting review. -->

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits (fix(scope):, feat(scope):, etc.)
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix/feature (no unrelated commits)
  • I've run pytest tests/ -q and all tests pass
  • I've added tests for my changes (required for bug fixes, strongly encouraged for features)
  • I've tested on my platform: Arch Linux

Documentation & Housekeeping

<!-- Check all that apply. It's OK to check "N/A" if a category doesn't apply to your change. -->
  • I've updated relevant documentation (README, docs/, docstrings) — or N/A
  • I've updated cli-config.yaml.example if I added/changed config keys — or N/A
  • I've updated CONTRIBUTING.md or AGENTS.md if I changed architecture or workflows — or N/A
  • I've considered cross-platform impact (Windows, macOS) per the compatibility guide — or N/A
  • I've updated tool descriptions/schemas if I changed tool behavior — or N/A

Screenshots / Logs

<!-- If applicable, add screenshots or log output showing the fix/feature in action. -->

Changed files

  • hermes_cli/main.py (modified, +9/-0)
  • hermes_cli/web_server.py (modified, +11/-4)
  • website/docs/user-guide/features/web-dashboard.md (modified, +13/-1)
RAW_BUFFERClick to expand / collapse

Problem or Use Case

Currently chat tab in web dashboard doesn't work well with --host flag: websocket connection is rejected and UI says "session ended". This prevents using web dashboard chat feature for quick interaction with Hermes on the go by, for instance, connecting to host via Tailscale and chatting via dashboard UI.

Proposed Solution

Add --insecure-chat flag to 'hermes dashboard' command in addition to existing --insecure flag that lets dashboard run on arbitrary ip.

Alternatives Considered

No response

Feature Type

Configuration option

Scope

Small

Contribution

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

Debug Report (optional)

extent analysis

TL;DR

Adding an --insecure-chat flag to the hermes dashboard command may resolve the issue with the chat tab not working when using the --host flag.

Guidance

  • The proposed solution suggests introducing a new flag to handle insecure chat connections, which could mitigate the current issue.
  • To verify the effectiveness of this solution, test the chat feature with the new flag after implementing it.
  • Consider the security implications of introducing an --insecure-chat flag, as it may compromise the security of the chat feature.
  • Before proceeding, ensure that the --insecure flag's behavior is well understood, as the new flag may interact with it in unforeseen ways.

Notes

The introduction of a new flag may have security implications, and its usage should be carefully evaluated.

Recommendation

Apply workaround: Introduce the --insecure-chat flag as proposed, but with careful consideration of the potential security trade-offs.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - ✅(Solved) Fix [Feature]: Make chat tab in web dashboard work with --host set to non-localhost address [1 pull requests, 1 participants]