# NousResearch/hermes-agent · Tool-error log truncation hides exit_code field

## Open now

- 1 issue, 2 PRs open on GitHub.
- #125238: \[Bug\]: Tool-error log line truncates the serialized result at 200 chars, dropping \`exit_code\` for most terminal failures
- PR #125248: fix(logging): keep exit_code visible in truncated tool-error log lines
- PR #125876: fix(agent): keep exit_code/error in the tool error log preview (#125238)

A bug where tool-error log lines truncate serialized output at 200 characters, causing the exit_code field to be dropped for most terminal failures. The members include the bug report and related fix attempts addressing log preview truncation.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 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.67`: 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

- #125238: \[Bug\]: Tool-error log line truncates the serialized result at 200 chars, dropping \`exit_code\` for most terminal failures

## Prior & competing PRs

- **#125248: fix(logging): keep exit_code visible in truncated tool-error log lines**. open
  - maintainer direction: category `wontfix_bydesign`; implication `wontfix`
  - files: `agent/tool_executor.py`, `tests/agent/test_error_status_suffix.py`
- **#125876: fix(agent): keep exit_code/error in the tool error log preview (#125238)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#125248`
  - files: `agent/tool_executor.py`, `tests/agent/test_tool_error_preview.py`

## Fix status

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