Skip to content

[Bug]: Desktop Remote gateway shows legacy session-token field, not username/password Sign In — can't connect to basic-auth backend #66521

Description

@bsubedi26

Summary

Settings → Gateway → Remote gateway only offers a Remote URL field and blocks Save with "Remote gateway incomplete.

Enter a remote URL and session token before switching to remote." There's no username/password Sign In option, even though the target backend has basic auth enabled and serves a proper Sign In (username/password) page when hit directly in a browser.

Environment

Desktop version: Version 0.18.2 (0.17.0)
OS: macOS (Apple Silicon)
Backend: official Docker image nousresearch/hermes-agent:latest, version 0.18.2, started via gateway run with HERMES_DASHBOARD=1
Backend auth: HERMES_DASHBOARD_BASIC_AUTH_USERNAME / _PASSWORD / _SECRET set; confirmed via curl http://:9119/api/status.

Steps to Reproduce

Backend running on a LAN host (Linux), port 9119 reachable.
On macOS, open Hermes Desktop → Settings → Gateway.
Select "Remote gateway", enter http://:9119 as Remote URL.
Click "Save and reconnect".

Expected Behavior

Per the docs (Web Dashboard / Desktop guides) and the 0.17.0 "Surface Release" notes, Desktop should probe /api/status, detect auth_providers: ["basic"], and present a username/password Sign In (same flow as /login in the browser) — no manual token entry required.

Actual Behavior

Panel shows only a Remote URL field and the message "Could not reach this gateway yet. Check the URL — the auth method will appear once it responds."

Clicking Save immediately throws "Remote gateway incomplete: Enter a remote URL and session token before switching to remote." with no request ever attempted — desktop.log remains 0 bytes after the click.

Opening the same URL directly in Safari works correctly and renders the full username/password Sign In page ("PUBLIC BIND · AUTH REQUIRED").

Test remote button is greyed out / non-interactive.

Ruled out macOS Local Network permission — not listed under System Settings → Privacy & Security → Local Network, and tccutil reset LocalNetwork (with and without sudo) fails with "tccutil: Failed to reset LocalNetwork".
Confirmed backend itself is healthy and reachable (curl to /api/status returns full JSON with gateway_running: true).

Fully uninstalled (~/.hermes, ~/Library/Application Support/Hermes, ~/.local/bin/hermes removed) and reinstalled fresh — same behavior persists.

Additional notes
This looks like the client never successfully completes the /api/status reachability probe from the Electron process, so it never learns auth_providers and falls back to a legacy token-entry UX that has no matching input field, making Remote gateway mode unusable against a basic-auth backend from this build.

Affected Component

Other, Setup / Installation

Messaging Platform (if gateway-related)

No response

Debug Report

n/a

Operating System

macOS 26.5.1

Python Version

No response

Hermes Version

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/authAuthentication, OAuth, credential poolsarea/sessionsSession lifecycle, resume, persistence, historybugcomp/desktopElectron desktop app (apps/desktop/*)needs-reproBug needs reproduction stepstype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions