Fix markdown parsers mishandling HTML-like and reasoning tags

NousResearch/hermes-agent · cluster 6442 · apps/desktop

Data as of

Nothing open on GitHub. Fix merged in #122787. Check it covers your case.

The short answer

0open issues
0open PRs
6items grouped
Known?
Yes. 6 related items grouped here, 2 issues already closed.
Fix event
A fix was merged to main in PR #122787. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this partially resolved, deciding PR #122787. That is separate from the fix event.
Still open
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.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #122787 fix(desktop): escape lone tildes and unknown html-like tokens in markdown prose

    merged to main

    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

3 PRs closed without merging

From the close comments: closed without comment 1 · done elsewhere 1 · duplicate 1

  • #6486 fix: skip reasoning tag detection inside markdown code spans/blocks · closed without comment
  • #53964 fix: escape unknown desktop markdown tags · done elsewhere → bd0affe
  • #58113 fix(desktop): preserve unknown html-like markdown tokens · duplicate → #53964
Closed issues · 2
  • Closed#6442TUI stream parser swallows text after literal `<think>` tags inside backticks when show_reasoning is false
  • Closed#53953[Bug]:Hermes Desktop markdown renderer silently consumes bare `<word>` sequences in assistant text (unknown HTML-like tokens treated as unclosed tags)
How this cluster was grouped
  • Link evidence (partly structural links): 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 item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
apps/desktop
Merged PRs
#122787
Closed issues
2
Attempts
3 PRs closed without merging
Fix link checked
25 Sep 2026

For your agent

The same facts, typed.