[BUG]BiDi rendering: Mixed Hebrew + English text appears in wrong order
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 responds in Hebrew (RTL) and includes English words (LTR)
in the same sentence, the word order becomes scrambled and hard to read.
For example, a sentence like:
"grid_state.py ץבוקב תאצמנ )(analyze היצקנופה"
The English parts (function names, file names) appear in the wrong
position within the sentence, making it difficult to understand.
This happens in the VS Code extension terminal.
A recent update fixed basic Hebrew rendering (correct letter order),
but mixed RTL/LTR content within the same line is still broken.
Possible fix: insert Unicode directional markers (RLM/LRM) around
LTR segments in RTL output, or use BiDi isolation characters
(U+2066/U+2069).
Environment:
- Claude Code in VS Code extension
- macOS
- Hebrew (RTL) responses with embedded English (LTR) words
<img width="996" height="75" alt="Image" src="https://github.com/user-attachments/assets/0322ec94-6249-4ac8-9570-db0d083c23df" />
What Should Happen?
Mixed RTL/LTR text should maintain correct reading order.
In a Hebrew sentence, English words (function names, file paths,
technical terms) should appear inline in the correct position
within the sentence, preserving the natural Hebrew right-to-left
reading flow.
For example:
"grid_state.py ץבוקב תאצמנ )(analyze היצקנופה"
Should read naturally from right to left, with "analyze()" and
"grid_state.py" appearing in their correct positions within
the Hebrew sentence.
Error Messages/Logs
Steps to Reproduce
- Open VS Code with the Claude Code extension installed
- Start a new Claude Code conversation
- Ask Claude to respond in Hebrew about a code topic, for example:
"JavaScript-ב setTimeout היצקנופה השוע המ תירבעב יל ריבסת"
- Claude will respond in Hebrew with English technical terms mixed in
- Observe that English words (like function names, file paths,
variable names) appear in wrong positions within the Hebrew
sentences, making the text hard to read
Expected: English words appear in their correct position within
the right-to-left Hebrew sentence flow.
Actual: The bidirectional text rendering scrambles the order of
English segments within Hebrew lines.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.83 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗