[BUG] Renderer strips <context> tags from output
🌀 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
<context>tags in fenced code blocks are stripped (the line between opening and closing tags disappears)- Inline backticked references to
<context>in the same message are also stripped - Other XML tags in the same position render fine — the bug is specific to the tag name
context - 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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗