# NousResearch/hermes-agent · Fix falsy zero check for tool preview length limit

## Open now

- 1 issue, 2 PRs open on GitHub.
- #51067: Bug: tool_preview_length: 0 (no limit) is truncated to 40 chars in gateway due to falsy check
- PR #51107: fix(gateway): respect tool_preview_length: 0 as unlimited
- PR #99125: fix(gateway): respect tool_preview_length=0 as unlimited

A bug where setting tool_preview_length to 0 (intended as no limit) was incorrectly treated as falsy and truncated to 40 characters in the gateway. Multiple fix attempts address honoring zero as an unlimited value.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 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

- #51067: Bug: tool_preview_length: 0 (no limit) is truncated to 40 chars in gateway due to falsy check

## Prior & competing PRs

- **#51091: fix(gateway): honor tool_preview_length: 0 as no limit in progress previews**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#23915`, `#51107`
- **#51107: fix(gateway): respect tool_preview_length: 0 as unlimited**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#23915`, `#51091`
  - files: `gateway/run.py`, `tests/gateway/test_run_progress_topics.py`, `tests/gateway/test_tool_preview_length_zero.py`
- **#99125: fix(gateway): respect tool_preview_length=0 as unlimited**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#51107`
  - files: `gateway/run.py`, `tests/agent/test_display.py`, `tests/gateway/test_run_progress_topics.py`

## Fix status

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