RTL (Right-to-Left) text direction support
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Claude Code currently has no RTL support in its interface. For users who work in Hebrew, Arabic, or other RTL languages, this creates a significant usability problem:
When Claude responds with mixed Hebrew/English text, the display breaks and becomes difficult to read There is no way to configure text direction in the conversation window Users have to "guess" what is written due to incorrect text rendering Request: Add RTL/bidirectional text support to the Claude Code interface (CLI + VSCode extension), similar to how VS Code handles RTL in the editor.
This would benefit all users writing in Hebrew, Arabic, Persian, and other RTL languages.
Proposed Solution
Add CSS direction: rtl and unicode-bidi: embed support for the conversation
pane, either:
- Auto-detect based on the dominant language of each message
- Add a user setting to force RTL mode globally
- Apply per-paragraph bidi algorithm (Unicode Bidirectional Algorithm - UBA)
This is standard browser/CSS behavior and should be relatively low-effort to implement in the VSCode extension UI.
Alternative Solutions
No response
Priority
High - Significant impact on productivity
Feature Category
Interactive mode (TUI)
Use Case Example
- I work in Hebrew and English daily (Parallels reseller, Israel/MEA market)
- Claude responds with mixed Hebrew/English text
- The text renders LTR, making Hebrew unreadable — letters appear reversed and words break incorrectly
- With RTL support, Hebrew users could read responses clearly without having to copy text to another app to understand it
Additional Context
No response
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/24284
- https://github.com/anthropics/claude-code/issues/29662
- https://github.com/anthropics/claude-code/issues/30984
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
+1 — Same issue here on the Claude Code desktop app (Electron) on Windows 11.
When typing or reading mixed Hebrew + English text, the line direction keeps flipping with every language switch, making it very hard to follow context. This affects both the input box and Claude's responses.
Environment:
- Claude Code desktop app (not browser, not terminal)
- Windows 11 Home
- Hebrew (RTL) + English (LTR) mixed text
Since Chrome extensions (like "Claude RTL") can't be installed in the Electron app, there is currently no workaround for desktop app users.
Would love to see at least a direction: rtl / auto-detect option in the app settings. 🙏
+1 — This is a daily pain point for me as a Hebrew speaker using Claude Code in the VS Code extension.
My specific issue: When writing Hebrew with English terms mixed in (very common in dev conversations, e.g. referencing function names, file paths, or technical terms), the BiDi algorithm breaks the visual order of the sentence, making it hard to read.
What I've tried:
- Installing RTL extensions (
dalirnet.rtl-markdown,SarbandAkray.rtl) - Setting
editor.unicodeBidi: "auto"in VS Code settings - None of these affect the Claude Code chat webview, since it's a closed webview with its own CSS
What would help:
- Adding
dir="auto"to message containers in the webview HTML - Applying
unicode-bidi: plaintextCSS to chat message elements - These are small CSS/HTML changes that would make Claude Code usable for millions of RTL language speakers (Hebrew, Arabic, Persian, Urdu)
I’m joining this request! this is extremely critical.
+1
+1 I'm experiencing this issue as well. RTL language support is essential for a large portion of users, and the lack of proper right to left text direction makes Claude Code very difficult to use. Would love to see this addressed!
+1 — adding a specific surface that isn't mentioned above yet: Plan Mode's Plan Viewer (the panel that shows a plan file for approval) also renders RTL content (Hebrew) left-aligned instead of right-aligned, with the same BiDi issue described in this thread.
To generalize the ask across all the reports in this cluster, it would help if the fix covered every output surface, not just the chat webview:
- Chat panel / message webview (already reported above)
- Plan Mode's Plan Viewer (plan-approval screen)
- The code-writing / diff window when it displays RTL-language content (e.g. comments or strings in Hebrew/Arabic/Persian)
Two concrete requirements that would resolve this for Hebrew, Arabic, and Persian alike:
- RTL paragraphs should render with
direction: rtl(right-aligned), consistent with standard Unicode Bidirectional Algorithm behavior in browsers/markdown renderers. - Embedded LTR runs inside RTL text — variable names, CLI commands, file paths, inline code, English words — must keep their correct left-to-right internal order and position within the surrounding RTL paragraph, instead of being visually reordered/reversed.
Applying dir="auto" + unicode-bidi: plaintext (as suggested above) to all three surfaces, not just the chat webview, would cover this.
+1 from a daily Hebrew user on Claude Desktop (Windows 10).
My entire workflow runs in Hebrew and the mixed-direction rendering makes long responses genuinely hard to read: any English token inside a Hebrew sentence (tool names, metrics like "CTR 17%", file paths) breaks the line direction, punctuation jumps to the wrong side, and bullet lists with mixed content become scrambled.
This affects every Hebrew, Arabic and Persian speaking user, hundreds of millions of potential users write RTL. Even a minimal fix would help enormously:
- Auto-detect paragraph direction (first strong character) and set dir accordingly per block
- Render inline code spans as LTR islands (unicode-bidi: isolate)
Happy to provide screenshots or test builds. Thank you!
Persian/Arabic user here. I want to add something I haven't seen in this thread: what specifically triggers the breakage, and a workaround that has been getting me most of the way there. It applies to all three surfaces — the terminal, the VS Code extension, and the desktop app.
The trigger is inline language mixing
When Claude answers in Persian or Arabic, it puts English words inside the RTL sentence — technical terms, filenames, library names, numbers. Those inline LTR runs inside an RTL paragraph are what break the rendering. The more English tokens in a sentence, the worse it gets.
Workaround: ask for one language per paragraph
I instruct Claude to keep Persian/Arabic in one paragraph and English in the next one — even when the English part is a single word. That solves roughly 90% of the problem for me, and it is what I use day to day.
It is not a fix. You have to instruct the model every time, and it forces awkward writing. But it isolates the trigger precisely: the breakage is concentrated in paragraphs that mix both directions, not in RTL text on its own.
Why this points at the fix
The fact that simply separating the two directions into different paragraphs recovers most of the readability says the missing piece is per-paragraph base direction resolution — exactly what the Unicode Bidirectional Algorithm (UAX #9) rules P2/P3 specify, and what unicode-bidi: plaintext / dir="auto" enable in a browser or Electron context.
If each paragraph resolved its own base direction from its first strong character, my manual workaround would become unnecessary, and the remaining 10% would be handled too — the case manual separation fundamentally cannot address: a single sentence that legitimately contains both directions. In developer conversations that is the common case, since nearly every technical term is Latin script.
Two notes on scope:
- The terminal needs a different fix from the two webview surfaces. In the VS Code extension and the desktop app the engine already implements UAX #9 and simply isn't being told to use it, so this is a CSS-level change. In the TUI there is no bidi engine at all in most terminals, so Claude Code has to run an actual UAX #9 reordering pass before emitting output.
- Whatever the fix, it should keep code blocks, file paths, and inline code LTR while the surrounding prose resolves as RTL.
unicode-bidi: plaintexton prose containers plus an explicitdir="ltr"on code elements gets that for free.
For anyone blocked right now: the one-language-per-paragraph instruction is a usable stopgap in the meantime.
For anyone hitting this in the terminal: I built a plugin that lays right-to-left replies out right-to-left in the Claude Code TUI. It's MIT-licensed: https://github.com/MohammedSaud404/rtl-terminal

It right-aligns RTL paragraphs, puts bullets and numbers on the right, fixes backwards brackets, keeps code and links left-to-right, and works for Hebrew, Arabic, Persian, Urdu and other RTL scripts. Levels come from the full Unicode Bidirectional Algorithm (bidi-js, which passes all 91,707 cases of Unicode's BidiCharacterTest).
/plugin install rtl-terminal --marketplace MohammedSaud404/rtl-terminal
To be clear about scope: it works where Claude Code reorders RTL text itself, which is Windows Terminal, conhost, and VS Code's integrated terminal on any OS. In other macOS and Linux terminals, Claude Code strips the Unicode direction marks before they reach the terminal, so the plugin steps aside there. It doesn't cover the desktop app or the VS Code extension panel; those need a text-direction option in the plugin API (#99956).
Native RTL support is still the real fix. This is a way to read RTL comfortably until then.
Workaround for disconnected Persian/Arabic letters in the terminal on macOS: install a Persian font and use it as the terminal's fallback font.
brew install --cask font-vazirmatn
Tested with Claude Code 2.1.319 on macOS 27.0:
- Terminal.app: installing the font was enough. Before, letters were disconnected and in the wrong order; after, they join and read in the right order.
- JetBrains terminal (tested in Rider 2025.3.2): set Settings → Tools → Terminal → Fallback font to
Vazirmatn, and keep the terminal engine on Reworked 2025. The Classic engine still shows disconnected, left-to-right letters even with the font. Classic is also the only engine that shows the tab title Claude Code sets, so on Reworked the tabs stay "Local (N)".
Why it works: coding fonts (JetBrains Mono, SF Mono, Menlo) have no Persian/Arabic glyphs, and the font the terminal falls back to doesn't join them.
This fixes how letters are drawn, not paragraph direction or mixed RTL/LTR lines. It also covers the macOS terminals where rtl-terminal does nothing.
Working setup for Persian/Arabic in the Claude Code CLI on macOS (WezTerm)
Tested with Claude Code 2.1.327. In an earlier comment I said WezTerm didn't help. It does once these three things are set:
-
CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT=1in theenvblock of~/.claude/settings.json:{ "env": { "CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT": "1" } }This fixes the main problem: RTL text that renders fine at first, then turns up reversed with disconnected letters as the session scrolls. Claude Code's fullscreen renderer scrolls with a scroll region plus scroll-up (
ESC[t;br+ESC[nS). WezTerm doesn't apply bidi to the lines that this creates, so text written into them is drawn left to right with every letter isolated. Minimal repro in plain WezTerm, no Claude Code involved:printf '\e[2J\e[1;1Hnormal: سلام دنیا\e[3;8r\e[3S\e[r\e[7;1Hafter SU: سلام دنیا\n'The first line renders correctly and the second comes out reversed with isolated letters. With full repaint on, Claude Code sends no
ESC[nS(checked in ascript -Frecording). Persian then stayed correct after long scrolling output. -
A recent WezTerm nightly (tested with
20261112-061903-ce8e6b14). Stable20240203doesn't mirror a closing bracket after a number, so(نسخه ۲.۱.۳۲۷)comes out as)…). The nightly draws it correctly. The nightly still has the scroll bug from step 1, so you need both. -
A monospaced Persian font and bidi settings in
~/.config/wezterm/wezterm.lua. Vazir Code gives each letter exactly one cell; proportional fonts leave gaps between letters. The "WOL" build contains no Latin glyphs, so English stays in your main font.config.font = wezterm.font_with_fallback { 'JetBrains Mono', 'Vazir Code Extra Height WOL', 'Vazirmatn' } config.bidi_enabled = true config.bidi_direction = 'AutoLeftToRight'
What this does not fix:
- Terminal.app: it reorders RTL lines itself, and that breaks Claude Code's cursor math, so the layout gets corrupted (#95667).
- The prompt input box: it is still left-aligned.
Related: #6751 (Windows workaround with Git Bash/mintty; locked), #89489, #37183.