Skip to content

[Bug]: Gateway Exits Unexpectedly on Long Prompts / Context #66286

Description

@f41007

Bug Description

Image

The Hermes Agent UI crash/terminates the gateway connection whenever a long prompt or command is submitted. The UI terminal outputs ⁠gateway exited⁠ and the process stops working.

Environment:
Application: Hermes Agent (UI Version)
OS: running on ubuntu, stream on windows 7 and macbook monetery

Steps to Reproduce

  1. Open the Hermes Agent UI.
  2. Input a long, detailed prompt or a long sequence of code/commands into the chat/command box.
  3. Submit the prompt.
  4. Observe the terminal output after a few moments of processing.

Expected Behavior

The gateway should handle longer context lengths or return a proper timeout/token-limit warning instead of exiting the process.

Actual Behavior

The gateway process crashes immediately and prints the following error to the terminal:

  • gateway exited | opc | 172.4k/256k

$ gateway exited

Affected Component

Tools (terminal, file ops, web, code execution, etc.)

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

Ok

Operating System

Ubuntu 24.04

Python Version

No response

Hermes Version

0.18.2

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

    P2Medium — degraded but workaround existsbugcomp/gatewayGateway runner, session dispatch, deliveryneeds-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