[BUG] Unwanted emoji insertion inside code output in Claude CLI breaks parsing
Resolved 💬 3 comments Opened Aug 3, 2025 by SongJohnhawk Closed Aug 15, 2025
Environment
- Platform (select one):
- [x] Other: Claude CLI (Windows native)
- Claude CLI version: <!-- 입력하신 버전 예: 1.2.3 -->
- Operating System: Windows 11
- Terminal: Windows Command Prompt
Bug Description
Claude CLI inserts emoji characters automatically and repeatedly inside source code when generating programming code. This behavior occurs even when not requested or desired by the user. The emojis are inserted in places within code comments or strings during code generation.
This is a critical and fundamental issue because:
- Unwanted emojis appear repeatedly and uncontrollably during coding sessions.
- Emojis inside source code cause parsing errors in many programming languages, especially JavaScript and Python (including Pine Script).
- When emojis exist in messages with Korean text, it inevitably produces syntax or runtime errors in these scripting languages.
- To mitigate this, we have established global guidelines recorded in the CLAUDE.md file to strictly prohibit emoji usage in code outputs. Despite this, emojis keep being inserted and force us to repeatedly fix the code manually.
- This also unnecessarily increases token consumption, impacting usage efficiency.
This issue seriously hampers development workflows and user experience. We strongly request a fix to disable automatic emoji insertion inside programming source code unless explicitly requested by the user.
Steps to Reproduce
- Use Claude CLI to generate or complete programming code snippets containing Korean comments or message strings.
- Observe that emojis are automatically inserted in the generated source code without user instruction.
- Repeated code generation cycles increase emoji insertions unpredictably.
- Attempt running or parsing the code in JavaScript or Python environments to see syntax or runtime errors caused by emojis.
Expected Behavior
- Claude CLI should never insert emoji characters inside programming source code by default.
- Emoji usage inside code should only occur if explicitly requested by the user.
- Generated code should be free from any automatic emoji additions that break parsing or execution.
- CLAUDE.md or other style guidelines enforcing no emoji inside code should be strictly respected.
Actual Behavior
- Emojis are automatically and repeatedly added in code outputs without user consent.
- This leads to syntax errors in JavaScript, Python, Pine Script and other languages.
- Users need to manually remove emojis and fix code multiple times during development.
- Token consumption rises unnecessarily due to redundant emoji insertions.
Additional Context
- This is a frequent issue during actual coding workflows when using Claude CLI.
- The problem affects users writing code with Korean messages or comments particularly.
- A permanent fix to the underlying emoji insertion logic would greatly improve usability and reliability.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗