# NousResearch/hermes-agent · Fix markdown parsers mishandling HTML-like and reasoning tags

## Open now

- Nothing open on GitHub.

Multiple fixes addressing parsers incorrectly consuming or dropping text containing HTML-like tokens and reasoning tags, particularly inside code spans, backticks, and when show_reasoning is false. Affects both TUI stream parser and desktop markdown renderer.

## TL;DR

- 6 member(s): 0 open issue(s), 2 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 #122787. Verify it addresses your case.
- **Recommended:** read PR #122787 (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: `partially_resolved` · deciding PR(s): `pr-122787`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.29`: 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

- #6442: TUI stream parser swallows text after literal \`<think>\` tags inside backticks when show_reasoning is false
- #53953: \[Bug\]:Hermes Desktop markdown renderer silently consumes bare \`<word>\` sequences in assistant text (unknown HTML-like tokens treated as unclosed tags)

## Prior & competing PRs

- **#122787: fix(desktop): escape lone tildes and unknown html-like tokens in markdown prose**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `apps/desktop/src/components/assistant-ui/markdown-text.prose-safety.test.tsx`, `apps/desktop/src/components/assistant-ui/markdown-text.test.ts`, `apps/desktop/src/lib/markdown-preprocess.directives.test.ts`, `apps/desktop/src/lib/markdown-preprocess.reasoning.test.ts`, `apps/desktop/src/lib/markdown-preprocess.ts`
- **#6486: fix: skip reasoning tag detection inside markdown code spans/blocks**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#53964: fix: escape unknown desktop markdown tags**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `bd0affe5e5f723579df8902852f5d0c47795f355`
- **#58113: fix(desktop): preserve unknown html-like markdown tokens**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#53964`

## Fix status

- Merged to main in PR #122787 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-25`.
- Subsystem: `apps/desktop`
