# NousResearch/hermes-agent · Truncate duplicate HTTP error bodies in tool logs

## Open now

- 1 issue, 3 PRs open on GitHub.
- #75927: Tool error handlers log the full HTTP response body twice, growing gateway stderr without bound (90 MB from 54 failed vision calls)
- PR #75938: fix(tools): truncate tool error bodies in logs without dumping twice
- PR #75977: fix(tools): cap tool error logs to one bounded line
- PR #76028: fix(tools): truncate exception text in tool error log handlers (#75927)

Tool error handlers were logging full HTTP response bodies twice, causing unbounded log growth. These items address truncating and deduplicating that output.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 3 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #75927: Tool error handlers log the full HTTP response body twice, growing gateway stderr without bound (90 MB from 54 failed vision calls)

## Prior & competing PRs

- **#75938: fix(tools): truncate tool error bodies in logs without dumping twice**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `85148f79f78af6c5dafdf0fa4e7545ec7f7a1731`, `#75927`
  - files: `hermes_logging.py`, `tests/test_hermes_logging.py`, `tests/tools/test_vision_tools.py`, `tools/image_generation_tool.py`, `tools/tts_tool.py`, `tools/vision_tools.py`
- **#75977: fix(tools): cap tool error logs to one bounded line**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tests/tools/test_tool_log.py`, `tests/tools/test_vision_tools.py`, `tools/image_generation_tool.py`, `tools/tool_log.py`, `tools/tts_tool.py`, `tools/vision_tools.py`
- **#76028: fix(tools): truncate exception text in tool error log handlers (#75927)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `6bcdd0369`, `ae727ce50a3c`, `#75927`, `#75977`, `#75938`, `#76028`, `#75938`, `#75977`, `#75938`, `#75977`, `#75977`, `#76028`, `#75977`, `#76028`, `#75977`, `#75938`, `#75977`, `#76028`, `#75927`, `#75938`, `#76028`, `#75977`, `#75977`, `#75938`, `#76028`, `#75977`, `#75977`, `#374151`, `#75927`, `#75938`, `#75977`, `#76028`
  - files: `tools/image_generation_tool.py`, `tools/tts_tool.py`, `tools/vision_tools.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
