[Bug] Claude Code injecting ANSI escape sequences into commit messages and PR descriptions
Bug Description
Despite giving it explicit instructions not to, Claude Code has once again injected ANSI/termimal escape characters into my commit messages and pull request descriptions. I do not really understand why it does this, but even if Anthropic isn't willing to fix this, I would at least love some documentation or guidance on how to fix this going forward (putting things in CLAUDE or similar files is unreliable).
I've reported this before but it was closed as a "duplicate". Similar issues include:
- https://github.com/anthropics/claude-code/issues/30635
- https://github.com/anthropics/claude-code/issues/30862
Very tired of wasting credits telling the clanker to go back and fix this.
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.71
- Feedback ID: 10f14eee-6365-48db-af05-9da101726b7e
<img width="861" height="203" alt="Image" src="https://github.com/user-attachments/assets/9de2fb51-a2bc-446d-82ce-f07ab9395ea7" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗