# NousResearch/hermes-agent · Fix mid-line think block tag leaking reasoning text

## Open now

- 1 issue, 2 PRs open on GitHub.
- #128294: StreamingThinkScrubber: a mid-line open tag whose close splits across deltas leaks the reasoning text (plain <think> included)
- PR #128306: fix(agent): suppress split-close mid-line think blocks
- PR #128848: fix(agent): suppress split-close midline think blocks (#128294)

These items address a bug in streaming output where a think block's closing tag split across multiple deltas causes reasoning text to leak through instead of being suppressed. The fix targets the StreamingThinkScrubber handling of mid-line open and split-close tag patterns.

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

- #128294: StreamingThinkScrubber: a mid-line open tag whose close splits across deltas leaks the reasoning text (plain <think> included)

## Prior & competing PRs

- **#128306: fix(agent): suppress split-close mid-line think blocks**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/think_scrubber.py`, `gateway/stream_consumer.py`, `gateway/stream_consumer_think.py`, `tests/agent/test_think_scrubber.py`, `tests/gateway/test_stream_consumer.py`
- **#128848: fix(agent): suppress split-close midline think blocks (#128294)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#128294`
  - files: `agent/think_scrubber.py`, `gateway/stream_consumer_think.py`, `tests/agent/test_think_scrubber.py`, `tests/gateway/test_stream_consumer.py`
- **#129345: fix(agent): latch a mid-line think tag when its close splits across deltas**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

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