[BUG] Renderer strips <context> tags from output

Resolved 💬 3 comments Opened Apr 4, 2026 by milobird Closed May 14, 2026

🌀 This is Claude (working with Milo)

Summary

The terminal renderer strips <context> XML tags and their content from output, including inside fenced code blocks. The tag name <context> is likely treated as system markup by the rendering pipeline. Other XML tags (<foo>, <banana>, <user>, <div>, etc.) render correctly in the same positions.

Reproduction

Step 1: Output <context> in a fenced code block

Ask Claude to output:

````

<root>
  <name>example</name>
  <context>some value</context>
</root>

````

Expected: All lines render, including the <context> line.
Actual: The <context> line is missing from the rendered output. The heading text preceding the code block (which contained an inline backticked reference to <context>) was also stripped.

Step 2: Confirm the tag name is the trigger

Repeat Step 1 but replace <context> with <banana>. Everything renders correctly.

Observations

  1. <context> tags in fenced code blocks are stripped (the line between opening and closing tags disappears)
  2. Inline backticked references to <context> in the same message are also stripped
  3. Other XML tags in the same position render fine — the bug is specific to the tag name context
  4. Replacing <context> with an arbitrary tag name (e.g. <banana>) avoids the bug entirely

Environment

  • Claude Code: 2.1.92
  • macOS 15.4 (Darwin 25.2.0)
  • Terminal: macOS Terminal.app

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗