[BUG] v2.1.74 RTL fix reverses clipboard text and breaks BiDi terminals

Resolved 💬 3 comments Opened Mar 12, 2026 by YitshakS Closed May 15, 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?

First, thank you for the RTL fix in v2.1.74. I use Claude Code in Hebrew, and RTL support is critical for millions of users working in RTL languages.

That said, the current approach of pre-reversing RTL characters in terminal output causes two problems:

1. Clipboard text is reversed in regular terminals
Text looks correct on screen, but copying it gives reversed characters (e.g., שלום becomes םולש).

2. BiDi terminals are double-reversed
Terminals with native BiDi support reverse the text again — making it unreadable.

What Should Happen?

An opt-out via env var (CLAUDE_DISABLE_RTL_REORDER=1) or config setting would let BiDi terminals skip the reversal. This is especially useful for terminal applications that embed Claude — they could set the env var programmatically without requiring any action from the user.

Error Messages/Logs

Steps to Reproduce

Problem 1 (clipboard corruption):

  1. Run claude in any regular terminal
  2. 2. Ask Claude to respond in Hebrew
  3. 3. Copy the response and paste it into a text editor
  4. 4. Observe that the pasted text is reversed

Problem 2 (BiDi terminals double-reversed):

  1. Run claude in a terminal with native BiDi support
  2. 2. Ask Claude to respond in Hebrew
  3. 3. Observe that text is displayed reversed (double-reversed)

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.73

Claude Code Version

2.1.74

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗