[BUG] Gets confused if I switch languages in the same prompt
Status Open
Maintainer reply None cached
Activity 0 comments · opened Jul 28, 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 I switch languages in the same prompt, it outputs some weird nonsensical stuff
What Should Happen?
Claude should write a script that translates several languages automatically in Python
Error Messages/Logs
Steps to Reproduce
- Create a file called code.py
- Ask claude
- get the error.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
v2.1.220
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_