hermes - 💡(How to fix) Fix Bug: Tool call XML parameter duplication causes corrupted tool calls

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…
RAW_BUFFERClick to expand / collapse

Bug Description

During consecutive tool calls with complex/nested parameters, the Gateway layer corrupts the XML output — parameters are duplicated in broken loops, causing the tool call to fail and the connection to drop mid-call.

Steps to Reproduce

  1. Run Hermes v0.15.1 with DeepSeek-V4-Pro via custom provider
  2. Engage in a multi-step task requiring several consecutive tool calls
  3. On one of the later calls, parameters get corrupted

What Happens

Tool call XML becomes corrupted with repeated parameter blocks containing garbled data. This repeats hundreds of times, followed by:

Connection dropped mid tool-call; reconnecting...

Expected Behavior

Tool call parameters should not be duplicated. Consecutive tool calls should work reliably.

Reproduction Rate

1-2 times per long session. More frequent with: search_files (multi-param), session_search (with around_message_id), memory (action=replace with multi-line old_string).

Environment

  • OS: WSL2 (Ubuntu 24.04)
  • Hermes: v0.15.1 (2026.5.29)
  • Model: deepseek-v4-pro via custom provider
  • Python: 3.11.15

Debug Reports

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: Tool call XML parameter duplication causes corrupted tool calls