[BUG] Claude Code Intellij plugin showing UTF-8 BOM markers in diffs

Status Closed — not planned
Maintainer reply None cached
Activity 5 comments · opened Jul 1, 2025 · closed Dec 26, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: Claude Code
  • Claude CLI version: 1.0.38
  • Operating System: MacOS 15.5
  • Terminal: Intellij Rider internal terminal

Bug Description

If you have BOM markers at the top of code files (due to sharing code with Windows users)
when Claude shows a diff in the GUI it shows the first line of the file as changed, every time.

The left "Original" side shows a file with type UTF-8 BOM and no changes

The right "Proposed" side shows a file with type UTF-8 and a change adding ZWNBSP to the first character.

Applying the change doesn't change the BOM marker - but this makes the GUI diff hard to use as it always scrolls to the top of the code even if the changes are much further down.

Additional Context

Screenshot:
!Image

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

5 Comments

github-actions[bot] · 1 year ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

kornysietsma · 1 year ago

Still happens.

erinmel · 10 months ago

Still happening to me
<img width="833" height="847" alt="Image" src="https://github.com/user-attachments/assets/230c76f5-34a2-4635-8d8f-7cc98c4513eb" />

github-actions[bot] · 9 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] · 9 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.