# NousResearch/hermes-agent · Debug log truncation at byte boundaries

## Open now

- Nothing open on GitHub.

These issues and PRs concern a bug where full-log uploads in a debug/share command drop lines that fall exactly on byte-boundary truncation points. The work involves identifying the problem and implementing boundary-safe truncation logic.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #14111. Verify it addresses your case.
- **Recommended:** read PR #14111 (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.40`: 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

- #13968: debug share full-log truncation drops a whole line at exact byte boundaries

## Prior & competing PRs

- **#14111: fix(debug): snapshot logs once, boundary-safe truncation, and sweep on all paths**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `gateway/run.py`, `hermes_cli/debug.py`, `scripts/release.py`, `tests/gateway/test_debug_command.py`, `tests/hermes_cli/test_debug.py`
- **#13994: feat(cli): add hermes debug share with byte-boundary-safe log truncation**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#8681`, `#10510`, `#11240`, `#11843`, `#14040`, `#14111`
- **#14039: fix(debug): preserve exact-boundary tail lines in full-log uploads**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#14040`, `#13968`
- **#14040: fix: preserve full-log lines at truncation boundaries**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#14039`, `#13968`

## Fix status

- Merged to main in PR #14111 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-22`. This confirmation is old and may be out of date (a revert/reopen would not have invalidated it here); re-verify.
