hermes - 💡(How to fix) Fix [Bug]: JavaScript heap out of memory

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…

Error Message

_puppeteer_get_prompt 2026-04-20 10:12:45,279 INFO tools.mcp_tool: MCP: registered 11 tool(s) from 1 server(s) 2026-04-20 10:12:45,279 INFO tools.mcp_tool: MCP: 11 tool(s) from 1 server(s) 2026-04-20 10:13:34,847 ERROR asyncio: unhandled exception during asyncio.run() shutdown task: <Task finished name='Task-11' coro=<Application.run_async() done, defined at /home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py:620> exception=OSError(5, 'Input/output error')> Traceback (most recent call last): File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once handle._run() File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/input/vt100.py", line 162, in callback_wrapper callback() File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 714, in read_from_input_in_context context.copy().run(read_from_input) File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 694, in read_from_input self.key_processor.process_keys() File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 286, in process_keys self._start_timeout() File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 414, in _start_timeout self._flush_wait_task = app.create_background_task(wait()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 1152, in create_background_task task: asyncio.Task[None] = loop.create_task(coroutine) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 437, in create_task task = tasks.Task(coro, loop=self, name=name, context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/_weakrefset.py", line 88, in add self.data.add(ref(item, self._remove)) File "/home/xus66/.hermes/hermes-agent/cli.py", line 10181, in _signal_handler raise KeyboardInterrupt() KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 746, in _run_async result = await f ^^^^^^^ asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 751, in _run_async self._redraw(render_as_done=True) File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 543, in _redraw self.context.copy().run(run_in_context) File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 524, in run_in_context self.renderer.render(self, self.layout, is_done=render_as_done) File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/renderer.py", line 639, in render height = layout.container.preferred_height( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 318, in preferred_height dimensions = [ ^ File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 319, in <listcomp> c.preferred_height(width, max_available_height) for c in self._all_children ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 2642, in preferred_height return Dimension.zero() ^^^^^^^^^^^^^^^^ File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/dimension.py", line 100, in zero return cls.exact(amount=0) ^^^^^^^^^^^^^^^^^^^ File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/dimension.py", line 86, in exact @classmethod

File "/home/xus66/.hermes/hermes-agent/cli.py", line 10181, in _signal_handler raise KeyboardInterrupt() KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 886, in run_async return await _run_async(f) ^^^^^^^^^^^^^^^^^^^ File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 756, in _run_async self.renderer.reset() File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/renderer.py", line 429, in reset self.output.flush() File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/output/vt100.py", line 706, in flush flush_stdout(self.stdout, data) File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/output/flush_stdout.py", line 37, in flush_stdout stdout.flush() OSError: [Errno 5] Input/output error 2026-04-20 10:13:47,544 INFO hermes_cli.web_server: Mounted plugin API routes: /api/plugins/example/ 2026-04-20 10:13:50,755 INFO agent.auxiliary_client: Vision auto-detect: using main provider alibaba (kimi-k2.5) 2026-04-20 10:13:50,898 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider alibaba (kimi-k2.5) 2026-04-20 10:15:01,148 INFO agent.auxiliary_client: Vision auto-detect: using main provider alibaba (kimi-k2.5) 2026-04-20 10:15:01,422 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider alibaba (kimi-k2.5)

Root Cause

Root Cause Analysis (optional)

Code Example

_puppeteer_get_prompt
2026-04-20 10:12:45,279 INFO tools.mcp_tool: MCP: registered 11 tool(s) from 1 server(s)
2026-04-20 10:12:45,279 INFO tools.mcp_tool:   MCP: 11 tool(s) from 1 server(s)
2026-04-20 10:13:34,847 ERROR asyncio: unhandled exception during asyncio.run() shutdown
task: <Task finished name='Task-11' coro=<Application.run_async() done, defined at /home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py:620> exception=OSError(5, 'Input/output error')>
Traceback (most recent call last):
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
    self._run_once()
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
    handle._run()
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/input/vt100.py", line 162, in callback_wrapper
    callback()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 714, in read_from_input_in_context
    context.copy().run(read_from_input)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 694, in read_from_input
    self.key_processor.process_keys()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 286, in process_keys
    self._start_timeout()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 414, in _start_timeout
    self._flush_wait_task = app.create_background_task(wait())
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 1152, in create_background_task
    task: asyncio.Task[None] = loop.create_task(coroutine)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 437, in create_task
    task = tasks.Task(coro, loop=self, name=name, context=context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/_weakrefset.py", line 88, in add
    self.data.add(ref(item, self._remove))
  File "/home/xus66/.hermes/hermes-agent/cli.py", line 10181, in _signal_handler
    raise KeyboardInterrupt()
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 746, in _run_async
    result = await f
             ^^^^^^^
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 751, in _run_async
    self._redraw(render_as_done=True)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 543, in _redraw
    self.context.copy().run(run_in_context)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 524, in run_in_context
    self.renderer.render(self, self.layout, is_done=render_as_done)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/renderer.py", line 639, in render
    height = layout.container.preferred_height(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 318, in preferred_height
    dimensions = [
                 ^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 319, in <listcomp>
    c.preferred_height(width, max_available_height) for c in self._all_children
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 2642, in preferred_height
    return Dimension.zero()
           ^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/dimension.py", line 100, in zero
    return cls.exact(amount=0)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/dimension.py", line 86, in exact
    @classmethod

  File "/home/xus66/.hermes/hermes-agent/cli.py", line 10181, in _signal_handler
    raise KeyboardInterrupt()
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 886, in run_async
    return await _run_async(f)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 756, in _run_async
    self.renderer.reset()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/renderer.py", line 429, in reset
    self.output.flush()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/output/vt100.py", line 706, in flush
    flush_stdout(self.stdout, data)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/output/flush_stdout.py", line 37, in flush_stdout
    stdout.flush()
OSError: [Errno 5] Input/output error
2026-04-20 10:13:47,544 INFO hermes_cli.web_server: Mounted plugin API routes: /api/plugins/example/
2026-04-20 10:13:50,755 INFO agent.auxiliary_client: Vision auto-detect: using main provider alibaba (kimi-k2.5)
2026-04-20 10:13:50,898 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider alibaba (kimi-k2.5)
2026-04-20 10:15:01,148 INFO agent.auxiliary_client: Vision auto-detect: using main provider alibaba (kimi-k2.5)
2026-04-20 10:15:01,422 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider alibaba (kimi-k2.5)

---
RAW_BUFFERClick to expand / collapse

Bug Description

<img width="1813" height="469" alt="Image" src="https://github.com/user-attachments/assets/fca51f5d-a3e5-431a-9aff-fbe65fbd7042" />

Steps to Reproduce

  1. run "hermes --tui" 问了几轮后就会出现bug

Expected Behavior

正常应该可以继续询问,现在cmd界面卡死了,明显是内存溢出

Actual Behavior

就是上面描述的截图

Affected Component

CLI (interactive chat)

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

_puppeteer_get_prompt
2026-04-20 10:12:45,279 INFO tools.mcp_tool: MCP: registered 11 tool(s) from 1 server(s)
2026-04-20 10:12:45,279 INFO tools.mcp_tool:   MCP: 11 tool(s) from 1 server(s)
2026-04-20 10:13:34,847 ERROR asyncio: unhandled exception during asyncio.run() shutdown
task: <Task finished name='Task-11' coro=<Application.run_async() done, defined at /home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py:620> exception=OSError(5, 'Input/output error')>
Traceback (most recent call last):
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
    self._run_once()
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
    handle._run()
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/input/vt100.py", line 162, in callback_wrapper
    callback()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 714, in read_from_input_in_context
    context.copy().run(read_from_input)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 694, in read_from_input
    self.key_processor.process_keys()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 286, in process_keys
    self._start_timeout()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 414, in _start_timeout
    self._flush_wait_task = app.create_background_task(wait())
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 1152, in create_background_task
    task: asyncio.Task[None] = loop.create_task(coroutine)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 437, in create_task
    task = tasks.Task(coro, loop=self, name=name, context=context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/_weakrefset.py", line 88, in add
    self.data.add(ref(item, self._remove))
  File "/home/xus66/.hermes/hermes-agent/cli.py", line 10181, in _signal_handler
    raise KeyboardInterrupt()
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 746, in _run_async
    result = await f
             ^^^^^^^
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 751, in _run_async
    self._redraw(render_as_done=True)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 543, in _redraw
    self.context.copy().run(run_in_context)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 524, in run_in_context
    self.renderer.render(self, self.layout, is_done=render_as_done)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/renderer.py", line 639, in render
    height = layout.container.preferred_height(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 318, in preferred_height
    dimensions = [
                 ^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 319, in <listcomp>
    c.preferred_height(width, max_available_height) for c in self._all_children
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/containers.py", line 2642, in preferred_height
    return Dimension.zero()
           ^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/dimension.py", line 100, in zero
    return cls.exact(amount=0)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/layout/dimension.py", line 86, in exact
    @classmethod

  File "/home/xus66/.hermes/hermes-agent/cli.py", line 10181, in _signal_handler
    raise KeyboardInterrupt()
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 886, in run_async
    return await _run_async(f)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 756, in _run_async
    self.renderer.reset()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/renderer.py", line 429, in reset
    self.output.flush()
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/output/vt100.py", line 706, in flush
    flush_stdout(self.stdout, data)
  File "/home/xus66/.hermes/hermes-agent/venv/lib/python3.11/site-packages/prompt_toolkit/output/flush_stdout.py", line 37, in flush_stdout
    stdout.flush()
OSError: [Errno 5] Input/output error
2026-04-20 10:13:47,544 INFO hermes_cli.web_server: Mounted plugin API routes: /api/plugins/example/
2026-04-20 10:13:50,755 INFO agent.auxiliary_client: Vision auto-detect: using main provider alibaba (kimi-k2.5)
2026-04-20 10:13:50,898 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider alibaba (kimi-k2.5)
2026-04-20 10:15:01,148 INFO agent.auxiliary_client: Vision auto-detect: using main provider alibaba (kimi-k2.5)
2026-04-20 10:15:01,422 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider alibaba (kimi-k2.5)

Operating System

wsl

Python Version

3.19

Hermes Version

0.10

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

The issue is likely caused by an unhandled exception in the hermes application, resulting in an input/output error, and a potential fix involves handling the OSError exception and ensuring proper cleanup of resources.

Guidance

  • Review the hermes application code to identify the source of the unhandled exception and add proper error handling to prevent the application from crashing.
  • Investigate the OSError exception with error code 5, which indicates an input/output error, and ensure that the application is properly handling input/output operations.
  • Verify that the application is correctly cleaning up resources, such as closing files or connections, to prevent resource leaks.
  • Consider adding logging or debugging statements to help identify the root cause of the issue.

Example

No code example is provided as the issue is related to a complex application and requires a more in-depth analysis of the codebase.

Notes

The issue is likely related to the hermes application and its interaction with the operating system, specifically the WSL environment. The provided logs and traceback suggest an unhandled exception, but the root cause is not immediately clear.

Recommendation

Apply a workaround by adding error handling to the hermes application to catch and handle the OSError exception, and ensure proper cleanup of resources to prevent resource leaks. This may involve modifying the application code to handle exceptions and errors more robustly.

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…

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]: JavaScript heap out of memory