[Bug]: EKKOLearnAI/ekko-studio升级Hermes Agent到 v0.21.5版本之后出现的问题?

Author: zengfengdipanCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbug

Ekko Studio Version

Studio v0.7.24

Agent Runtime and Version (if applicable)

Hermes Agent v0.21.5 CLI

Bug Description

EKKOLearnAI/ekko-studio升级Hermes Agent到 v0.21.5版本之后出现的问题?出现提示:Ekko Studio什么提示Error: [WinError 10061] 由于目标计算机积极拒绝,无法连接。跟Ekko Studio什么提示Error: [WinError 10054] 由于目标计算机积极拒绝,无法连接。Hermes Agent退回到 v0.21.3版本就恢复正常!

issue-zh.md

issue-en.md

hermes_bridge_worker_repro.py

ImageImageImageImageImage

Steps to Reproduce

English version Title: Hermes bridge worker is silently killed on Windows when a session starts (regression in 0.21.4 / 0.21.5; 0.21.3 is fine)

Summary On Windows, when Hermes runs as a worker under a host agent-bridge (hermes_bridge.py), the worker process is silently killed the moment an agent session is constructed (context_estimate / chat):

process exit code 1 stderr is completely empty: no traceback, no atexit, no SystemExit output the in-flight request is reset → frontend shows [WinError 10054] An existing connection was forcibly closed by the remote host the next request has no listener → frontend shows [WinError 10061] No connection could be made because the target machine actively refused it The Hermes CLI itself is perfectly healthy on the same machine/config (hermes -z 'say OK' → OK); only the bridged channel fails, 100% of the time. Reverting to 0.21.3 restores normal operation.

Environment Windows x64; frontend Ekko Studio v0.7.23 (Agent page reports Hermes CLI v0.21.5; the venv carries editable.hermes_agent-0.21.4.pth) Launch command, from the frontend log (logs/server.log, [agent-bridge] starting:): broken builds (0.21.4 / 0.21.5): C:\Users<u>\AppData\Local\hermes\hermes-agent\venv\Scripts\python.exe + \resources\webui\dist\server\agent-bridge\python\hermes_bridge.py --endpoint tcp://127.0.0.1: --agent-root C:\Users<u>\AppData\Local\hermes\hermes-agent --hermes-home C:\Users<u>\AppData\Local\hermes working build (0.21.3): D:.hermes-web-ui\desktop-runtime\hermes\0.21.3\win-x64\python\venv\Scripts\python.exe + the same arguments D:\Hermes is a junction to C:\Users<u>\AppData\Local\hermes (same tree, two spellings) Symptom (frontend-side evidence) logs/bridge.log:

json 复制 {"level":40,"durationMs":31094,"response":{"ok":false,"error":"[WinError 10054] ..."},"msg":"[agent-bridge-client] request rejected"} {"level":40,"durationMs":2043, "response":{"ok":false,"error":"[WinError 10061] ..."},"msg":"[agent-bridge-client] request rejected"} logs/server.log:

text 复制 [agent-bridge] starting: \python.exe ...\hermes_bridge.py --endpoint tcp://127.0.0.1: ... [gateway-runner] gateway exited unexpectedly ... code=78 ... reached respawn limit Minimal reproduction Using the attached script, which starts the worker with the exact command line the frontend uses and then speaks the bridge's newline-delimited JSON protocol over the --endpoint port:

text 复制 python hermes_bridge_worker_repro.py ^ --python "C:\Users<u>\AppData\Local\hermes\hermes-agent\venv\Scripts\python.exe" ^ --bridge "\resources\webui\dist\server\agent-bridge\python\hermes_bridge.py" ^ --agent-root "C:\Users<u>\AppData\Local\hermes\hermes-agent" ^ --hermes-home "C:\Users<u>\AppData\Local\hermes" ^ --profile {"action":"ping"} → {"ok": true, "pong": true, ...} {"action":"context_estimate","session_id":"repro","profile":"

","messages_count":0} (same with --action chat) Broken builds (0.21.4 / 0.21.5)

text 复制 ping -> {"ok": true, "pong": true, ...} context_estimate -> <ConnectionResetError: [WinError 10054] ...> worker exit code: 1 ping2 -> <ConnectionRefusedError: [WinError 10061] ...> --- worker stderr (1 line) --- <- only the startup event, no error output at all Working build (0.21.3)

text 复制 ping -> {"ok": true, "pong": true, ...} context_estimate -> {"ok": true, "model": "glm-4.7-flash", "token_count": 18485, "tool_count": 25, ...} worker exit code: None (still alive) ping2 -> {"ok": true, "pong": true, ...} RESULT: worker survived -> this build looks OK. Stable: broken builds died 4/4 runs; the working build survived 1/1.

Ruled out Hypothesis Result Network / proxy / TLS model + internet endpoints reachable; CLI works Model / provider / key hermes -z 'say OK' → OK Local API server (127.0.0.1:8642) repaired and verified 200 OK; still failed afterwards stdio MCP servers (8 configured) copied the profile home, removed all mcp_servers (mcp_server_count: 0); still died timeout / OOM with pings only and no session work, the worker survived 98+ seconds launcher → managed-runtime re-exec chain starting the worker with the managed runtime python directly still died stale spawn-ledger.json cleared it; still died Python-level exit / native crash no os._exit/sys.exit/atexit; -X faulthandler produced no output All of these kill paths were hooked inside the process and never fired: subprocess.Popen.init/terminate/kill, os.kill, psutil.Process.terminate/kill, ctypes.windll.kernel32.TerminateProcess / TerminateJobObject, os._exit, atexit.

⇒ the process is terminated outside the Python layer (Windows job object with KILL_ON_JOB_CLOSE, or a process-tree kill). Signature matches: exit code 1, no output at all, atexit never runs.

Suspected code (from the 0.21.4 tree, NOT confirmed) tools/mcp_tool_transport.py, ~366-379: before connecting each stdio MCP server it calls hermes_cli.process_identity.attach_self_to_kill_on_close_job(); the comment references the Windows orphan-process fix #61059 hermes_cli/process_identity.py, ~454-512: CreateJobObjectW + JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE (0x2000) + AssignProcessToJobObject(job, GetCurrentProcess()), handle kept in the module-global _JOB_HANDLE agent/deadline.py, ~415-439: kill_process_tree() shells out to taskkill /F /T /PID on Windows hermes_cli/process_identity.py, ~374-426: reap_orphaned_mcp_helpers() / _kill_process_tree_windows() Note: because disabling MCP entirely still reproduced the death, the trigger is not limited to the MCP spawn path. These are the prime suspects, not a proven root cause; pinpointing it needs Hermes-side instrumentation.

Impact / severity High: the Hermes channel is 100% unusable in this frontend, and it presents as a "chat connection error", which misleads toward network/model/port problems and is expensive to diagnose. Windows-only, hermes_bridge.py worker mode only.

Workaround Pin 0.21.3 and disable auto-update; or use the Hermes CLI directly.

Expected Behavior

2026-09-28 09:12:59,175 INFO httpx2: HTTP Request: POST https://mcp.tavily.com/mcp/?tavilyApiKey=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 "HTTP/1.1 200 OK" 2026-09-28 09:12:34,297 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-b2d4d2744faa4c7c9cf276a16043bd33 body_keys=None 2026-09-28 09:12:04,277 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-0f15debeab94405f9bf19fa38de0dd4a body_keys=None 2026-09-28 09:11:34,274 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-2f39773ec6d14a6c8c416b0c52477b83 body_keys=None 2026-09-28 09:11:04,261 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-7f136c9393d64ff2b6cb6e73c65fd7bf body_keys=None 2026-09-28 09:10:44,905 INFO hermes_cli.nous_auth_keepalive: Nous auth keepalive requires re-login: No access token found for Nous Portal login. 2026-09-28 09:10:34,251 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-d56d4d04908a46a8a9e238f71567c33d body_keys=None 2026-09-28 09:10:04,255 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-bfc8dc6a5f434131ad8e440948e77188 body_keys=None 2026-09-28 09:09:56,973 INFO httpx2: HTTP Request: POST https://mcp.tavily.com/mcp/?tavilyApiKey=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 "HTTP/1.1 200 OK" 2026-09-28 09:09:34,238 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-65fe32fd32a844ec83a4f8baea75ddea body_keys=None 2026-09-28 09:09:04,226 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-8014b1e9d4b943f3bbe5aa4b920289d6 body_keys=None 2026-09-28 09:08:34,217 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-c5c9d2e5e22348c087406fde5bf65dfa body_keys=None 2026-09-28 09:08:04,107 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-a1ce8b7e4ddb4af4bcf0b80c6664e936 body_keys=None 2026-09-28 09:07:34,200 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-e8d49da2a8e64711bcd81348d57381bf body_keys=None 2026-09-28 09:07:04,194 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-5d20e415e1144b1b909ac4a0707638b6 body_keys=None 2026-09-28 09:06:56,001 INFO httpx2: HTTP Request: POST https://mcp.tavily.com/mcp/?tavilyApiKey=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 "HTTP/1.1 200 OK" 2026-09-28 09:06:34,185 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-7a08d142d51f498ba81c7cd28f4ea19e body_keys=None 2026-09-28 09:06:04,071 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-4c09dd002f81409581d43f53a2706cec body_keys=None 2026-09-28 09:05:34,062 INFO hermes_plugins.wecom_platform.adapter: [Wecom] Unrouted websocket payload dropped: cmd='(empty)' req_id=ping-4b56a665ff8a4894bf0ecf880920a569 body_keys=None

Actual Behavior

Ekko Studio什么提示Error: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

Logs / Error Messages

bash
提示Error: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

Environment

Windows

Node Version

26.7.0

Additional Context

No response

Source: EKKOLearnAI/hermes-studio