hermes - ๐Ÿ’ก(How to fix) Fix [Bug]: windows bug [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#15828โ€ขFetched 2026-04-26 05:24:48
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Participants
Timeline (top)
labeled ร—7

Error Message

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Fix Action

Fix / Workaround

Workaround: Kill the process manually via Task Manager or taskkill /PID XXXX.

All features should work on Windows without requiring workarounds or manual fixes.

Code Example

โš™๏ธ  /debug
โš ๏ธ  This will upload the following to a public paste service:
  โ€ข System info (OS, Python version, Hermes version, provider, which API keys
    are configured โ€” NOT the actual keys)
  โ€ข Recent log lines (agent.log, errors.log, gateway.log โ€” may contain
    conversation fragments and file paths)
  โ€ข Full agent.log and gateway.log (up to 512 KB each โ€” likely contains
    conversation content, tool outputs, and file paths)

Pastes auto-delete after 6 hours.

---
RAW_BUFFERClick to expand / collapse

Bug Description

[Windows] Multiple Windows Compatibility Issues

Hermes Gateway version: (fill in your version) OS: Windows 10/11 (PowerShell)


Issue 1: Phantom PID - Gateway reports "already running" after clean shutdown

Description: After fully closing Hermes Gateway, a phantom process remains. Restarting Hermes reports "already running (PID XXXX)" even though the process is not visible in Task Manager.

Workaround: Kill the process manually via Task Manager or taskkill /PID XXXX.


Issue 2: Update fails - pip install -e causes path corruption

Description: Running hermes update (which internally calls pip install -e) corrupts the installation path, causing import errors or missing modules on next launch.

Affected files/modules: The editable install path breaks after self-update.


Issue 3: WebUI build fails - Unix commands not compatible with PowerShell

Description: The web/package.json scripts use Unix commands (rm -f, cp, etc.) which are not available in PowerShell on Windows. hermes webui or hermes build-webui fails immediately.

Affected command: hermes webui / hermes build-webui


Issue 4: os.kill() failure - Windows doesn't support signals

Description: When stopping/restarting the Gateway, Hermes uses os.kill(pid, signal) which does not work on Windows. This causes child processes to leak and not clean up properly.

Affected operation: Gateway shutdown, restart, update


Issue 5: Terminal tool silently returns empty output

Description: In some sessions, the terminal tool returns exit_code: 0 but both stdout and stderr are completely empty. Commands appear to succeed but produce no output, making the terminal unusable.

Reproduction: Unclear - appears intermittently across sessions.


Environment

  • Windows version: (e.g., Windows 11 23H2)
  • Shell: PowerShell
  • Hermes version: (run hermes --version)
  • Python version: (run python --version)

Expected behavior

All features should work on Windows without requiring workarounds or manual fixes.


Additional context

These issues have been individually fixed multiple times by community contributors but keep recurring or regressing after updates. A sustained effort to maintain Windows compatibility (e.g., CI testing on Windows, or a Windows-specific test suite) would help prevent future regressions.

Steps to Reproduce

Windows ๆ›ดๆ–ฐ

Expected Behavior

ๆ›ดๆ–ฐๆˆๅŠŸ

Actual Behavior

ๅคฑ่ดฅ

Affected Component

Gateway (Telegram/Discord/Slack/WhatsApp)

Messaging Platform (if gateway-related)

No response

Debug Report

โš™๏ธ  /debug
โš ๏ธ  This will upload the following to a public paste service:
  โ€ข System info (OS, Python version, Hermes version, provider, which API keys
    are configured โ€” NOT the actual keys)
  โ€ข Recent log lines (agent.log, errors.log, gateway.log โ€” may contain
    conversation fragments and file paths)
  โ€ข Full agent.log and gateway.log (up to 512 KB each โ€” likely contains
    conversation content, tool outputs, and file paths)

Pastes auto-delete after 6 hours.

Operating System

Windows 11

Python Version

No response

Hermes Version

0.11.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

extent analysis

TL;DR

To address the multiple Windows compatibility issues in Hermes Gateway, focus on implementing Windows-specific fixes for process management, path handling, and command compatibility.

Guidance

  • For Issue 1, consider using a Windows-compatible method to check for and kill remaining processes after shutdown, such as using tasklist and taskkill commands.
  • For Issue 2, modify the hermes update command to avoid using pip install -e which causes path corruption, possibly by using a virtual environment or a different installation method.
  • For Issue 3, update the web/package.json scripts to use PowerShell-compatible commands instead of Unix commands, or use a cross-platform tool like npm or yarn for building the WebUI.
  • Investigate the use of os.kill() and replace it with a Windows-compatible method for stopping and restarting the Gateway, such as using taskkill or pskill.

Example

No specific code example can be provided without modifying the existing Hermes Gateway codebase, but consider using PowerShell's Start-Process and Stop-Process cmdlets for process management.

Notes

The fixes may require significant changes to the Hermes Gateway codebase and should be thoroughly tested to ensure compatibility and functionality on Windows.

Recommendation

Apply workarounds and fixes for each issue, as upgrading to a fixed version is not currently an option given the information provided. This approach allows for immediate mitigation of the compatibility issues while a more permanent solution is developed.

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โ€ฆ

FAQ

Expected behavior

All features should work on Windows without requiring workarounds or manual fixes.


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 - ๐Ÿ’ก(How to fix) Fix [Bug]: windows bug [1 participants]