[BUG] git diff highlighting should respect terminal settings

Resolved 💬 5 comments Opened Feb 4, 2026 by xxfelixxx Closed Mar 5, 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 claude code shows me git diffs of changes it makes, it should respect the existing git configuration.

I asked claude about this, and it advised me to open a ticket.

<img width="1896" height="636" alt="Image" src="https://github.com/user-attachments/assets/793e5e44-8915-422e-871c-315eda3fdf87" />

What Should Happen?

I expect to see (git diff in my terminal):

<img width="868" height="86" alt="Image" src="https://github.com/user-attachments/assets/0c7acd4e-6beb-4bca-b26c-353b35f5464f" />

Error Messages/Logs

But claude-code shows me this:

<img width="1822" height="125" alt="Image" src="https://github.com/user-attachments/assets/84519108-b223-49bd-ae4a-2e8b05d96c63" />

Steps to Reproduce

  1. Ask claude to make a trivial change to a file and show it to you.
  2. Run git-diff in bash on the command line
  3. Compare output

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.15 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Running bash in MobaXTerm

View original on GitHub ↗

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