[BUG] Syntax highlighting bleeds into subsequent user input after code block with JSON

Resolved 💬 3 comments Opened Jan 22, 2026 by kbfriston3 Closed Jan 25, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When a code block containing a curl command with JSON is displayed, the syntax highlighting appears to "leak" into subsequent user input. The user's message is displayed in red instead of the normal color.

What Should Happen?

User input should be displayed in the default color, not affected by previous code block formatting.

Error Messages/Logs

No error messages. This is a visual rendering issue.

Steps to Reproduce

  1. Ask Claude to show a curl command example that includes JSON data (e.g., POST request with -d '{"issue": {...}}')
  2. After the response is displayed, type a new message
  3. Observe that the user's input is displayed in red

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.14

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Screenshot attached showing the issue. The problematic code block contained:
curl -X POST http://localhost:3000/issues.json \
-H "Content-Type: application/json" \
-H "X-Redmine-API-Key: your_api_key" \
-d '{"issue": {"project_id": 1, "subject": "テスト", "tracker_id": 1}}'

<img width="1134" height="524" alt="Image" src="https://github.com/user-attachments/assets/e7ffafca-f440-45d0-8790-422f71ae4992" />

View original on GitHub ↗

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