# NousResearch/hermes-agent · Truncated code output causes agent retry loops

## Open now

- Nothing open on GitHub.

These issues and PRs address a bug where truncated or empty stdout from code execution causes agents to enter retry loops. The proposed fixes involve exposing truncation metadata and adding structured signals to inform the agent that output was intentionally cut off.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #65533. Verify it addresses your case.
- **Recommended:** read PR #65533 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## 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.

## Closed / duplicate issues

- #35696: Bug: Agent enters retry loop when execute_code output is truncated / empty

## Prior & competing PRs

- **#65533: fix(code-exec): expose truncated stdout metadata (#36022 salvage)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `acp_adapter/tools.py`, `scripts/release.py`, `tests/acp/test_tools.py`, `tests/tools/test_code_execution.py`, `tools/code_execution_tool.py`
- **#36022: fix(code-exec): expose truncated stdout metadata**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `e2db5ebad`, `#65533`, `#35696`
- **#43631: fix(tools/execute_code): add structured truncation signal to prevent retry loops**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#36022`

## Fix status

- Merged to main in PR #65533 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-16`.
- Subsystem: `acp_adapter/bootstrap`
