Skip to content

fix: allow Desktop remote gateway file origins#37722

Closed
robertvoy wants to merge 1 commit into
NousResearch:mainfrom
robertvoy:fix/desktop-remote-file-origin
Closed

fix: allow Desktop remote gateway file origins#37722
robertvoy wants to merge 1 commit into
NousResearch:mainfrom
robertvoy:fix/desktop-remote-file-origin

Conversation

@robertvoy

Copy link
Copy Markdown

Summary

  • Allow packaged Hermes Desktop remote gateway WebSockets to connect with Origin: file:// after dashboard session-token auth.
  • Keep non-web origins rejected for gated/public dashboard auth modes.
  • Add a regression test for remote Desktop /api/ws connection behavior.

Why

Test remote can pass because it uses REST, while Save and reconnect fails because the Electron renderer opens a WebSocket with a file:// origin. Previously Hermes only allowed that non-web origin on loopback binds, which breaks explicit remote Desktop mode over a trusted/tailnet backend guarded by the session token.

Test plan

  • python -m pytest tests/hermes_cli/test_web_server.py::TestPtyWebSocket::test_remote_desktop_file_origin_allowed_after_token -q -o 'addopts='

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard area/auth Authentication, OAuth, credential pools labels Jun 2, 2026
@robertvoy

Copy link
Copy Markdown
Author

Closing in favor of #37747, which carries the same Desktop remote gateway origin fix on a NousResearch branch with broader origin-guard regression coverage and passing CI.

@robertvoy robertvoy closed this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication, OAuth, credential pools comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants