hermes - 💡(How to fix) Fix guardrail_halt exits silently — no final assistant message delivered to client [3 pull requests]

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…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Describe the bug

When the tool loop guardrail fires (, , or ), the turn exits immediately with and no final assistant message is emitted to the client. From the user's perspective — especially through API/SSE clients like Open WebUI — the conversation just goes silent with no explanation.

Reproduction

  1. Send a prompt that causes the agent to use a tool that will repeatedly fail (e.g. "write two pytest cases and run them" in an environment without pytest installed)
  2. The agent hits after N consecutive failures
  3. The SSE stream closes — no final message is delivered to the client

Log evidence

suggests the guardrail message is written to internal conversation history but not emitted as an SSE chunk to the client.

Expected behaviour

On , Hermes should inject a final assistant text message before closing the stream — summarising what was completed and why it stopped. Example:

Stopped after 4 consecutive terminal failures (pytest not installed in this environment). The function was written successfully but the tests could not be verified. You may want to install pytest or run the tests manually.

Actual behaviour

Client receives an abrupt stream end with no message. Indistinguishable from a crash.

Environment

  • Hermes gateway via → Open WebUI (SSE client)
  • Also reproduced in TUI (CLI) — confirmed to be a Hermes issue, not a client rendering issue
  • Platform:
  • Guardrail type: (count=4)

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 guardrail_halt exits silently — no final assistant message delivered to client [3 pull requests]