RTL (Right-to-Left) text is rendered incorrectly as LTR

Open
#33,328 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet

Research direction

No source file or test is identified in the report. Start by reproducing the issue in the ChatGPT Desktop application with Persian or another RTL language, using feedback ID no-active-thread-019f65a5-5d4f-7423-85ee-6d1e63f5d241; done means RTL paragraphs, mixed RTL/LTR text, alignment, punctuation, code, numbers, and cursor behavior render correctly.

Written by the indexing model from the issue text.

Description

app bug
What version of the Codex App are you using (From “About Codex” dialog)?

26.707.72221

What subscription do you have?

Pro

What platform is your computer?

x64

What issue are you seeing?

When using the ChatGPT Desktop application, right-to-left (RTL) languages such as Persian (Farsi) are not rendered correctly.

Instead of displaying the text from right to left, the application lays out the content as left-to-right (LTR), causing punctuation, mixed English/Persian text, code snippets, and paragraph alignment to appear incorrectly.

What steps can reproduce the bug?

Feedback ID: no-active-thread-019f65a5-5d4f-7423-85ee-6d1e63f5d241

What is the expected behavior?
  • RTL paragraphs should be rendered with proper right-to-left direction.
  • Mixed RTL/LTR text (e.g., Persian with English words, code, or numbers) should follow the Unicode Bidirectional Algorithm and display correctly.
  • Text alignment and cursor behavior should match standard RTL text rendering.
Additional information

No response

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.