Skip to content

Windows Desktop backend port announcement timeout (45000ms) after provider-isolated boot test #59205

Description

@ahmedmahmoud77755-gif

Summary

Hermes Desktop on Windows fails to start because the backend never announces its port before the desktop timeout.

Main error:

Desktop boot failed: Timed out waiting for Hermes backend port announcement (45000ms)

This looks related to, but not fully covered by:

I also see a renderer-side error:

RangeError: Maximum call stack size exceeded

That may be separate from the backend startup timeout.

Environment

  • Hermes version: 0.18.0
  • OS: Windows 10.0.26200
  • Install layout: Hermes executable located under the local app data Hermes agent virtualenv Scripts directory
  • Startup modes attempted: Desktop and serve

Troubleshooting already attempted

  • Restarted Hermes.
  • Restarted the machine.
  • Cleared session data by renaming session/state stores.
  • Ran the agent directly using hermes serve.
  • Performed a provider-isolated boot test by disabling failing/depleted/invalid providers.
  • Restored original config after testing.
  • Reproduced with an empty workspace.

Provider-isolated boot test result

  • Provider-isolated boot test: attempted
  • Result: FAIL
  • Backend port announcement: not observed / not programmatically verifiable
  • Agent connection: unavailable

This suggests the failure is not only provider billing/auth noise.

Expected behavior

Hermes Desktop should start, the backend should announce its port, and the desktop should connect to the backend without timing out.

Actual behavior

The desktop waits for the backend port announcement and times out after 45 seconds. The agent is not reachable afterward.

Questions

  1. What is the official diagnostic path for backend port announcement timeouts on Windows?
  2. Which backend log should contain the port announcement event?
  3. Could this be caused by a stale packaged app.asar still using the old 45-second timeout path?
  4. Should HERMES_DESKTOP_PORT_ANNOUNCE_TIMEOUT_MS be used as a workaround, and where should it be set for Windows Desktop?
  5. Can Windows Defender / cold Python import scanning cause this timeout even after provider isolation?
  6. Which cache/state folders are safe to clear after backup?
  7. Is there a minimal safe startup mode with all providers disabled?
  8. Which ports must be free for gateway/backend startup?
  9. Is the current local app data virtualenv install layout expected for desktop mode?
  10. Can RangeError: Maximum call stack size exceeded persist after clearing session data, and could it block the desktop from recovering?

Sanitization note

No API keys, tokens, provider credentials, local config contents, or service-account files are included in this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/desktopElectron desktop app (apps/desktop/*)platform/windowsNative Windows-specific behavior or breakagesweeper:risk-platform-windowsSweeper risk: may break or behave differently on native Windowstype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions