[BUG] BiDi bug: question mark misplaced in pure Hebrew text in Claude Code (Desktop) regular Claude Desktop chat unaffected
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 typing a pure Hebrew sentence (no English/Latin characters mixed in) that ends with a question mark, the question mark and character order display correctly while typing in the input box, but become misplaced once the message is submitted and rendered in the conversation history.
What Should Happen?
This reproduces specifically inside Claude Code running in the Claude Desktop app. The regular Claude Desktop chat interface (i.e., talking to Claude directly, not through Claude Code) does not exhibit this issue — Hebrew renders correctly there, including after sending. This suggests the bug is isolated to Claude Code's own message rendering (likely because it goes through a separate rendering path from the standard chat UI), not a general Claude Desktop / Electron / OS-level bidi problem.
This is also distinct from the previously reported mixed Hebrew+English bidi issues (#35874, #48938, #38708) — this reproduces with Hebrew-only text, suggesting the bug also affects basic neutral-character (punctuation) placement within a single-direction RTL paragraph, not only mixed-direction text.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code inside the Claude Desktop app
- Type a multi-line Hebrew question ending in "?" in the input box (renders correctly while typing)
- Press Enter to submit
- Observe the rendered message in the Claude Code chat — the question mark is no longer in the correct position
- For comparison: send the same text in a regular Claude Desktop chat (not Claude Code) — renders correctly
<img width="897" height="153" alt="Image" src="https://github.com/user-attachments/assets/0937dd18-865c-4e75-8cc6-9b2552e90a9f" />
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.193 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
running inside Claude Desktop app's built-in Claude Code panel, not an external terminal emulator".