Incorrect RTL layout when Arabic text contains inline code
What version of the Codex App are you using (From “About Codex” dialog)?
26.721.11231.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
_No response_
What issue are you seeing?
Title:
<img width="455" height="458" alt="Image" src="https://github.com/user-attachments/assets/49e67665-b39f-493c-8a0d-827620255147" />
Arabic text is displayed in an incorrect visual order when it contains English identifiers or inline code.
Example:
تم إرسال القيمة sample_id إلى الحقل request_status ثم تحديث رقم السجل record_number بنجاح.
Actual behavior:
Parts of the Arabic sentence and the English identifiers appear in a confusing order.
Expected behavior:
The Arabic paragraph should remain right-to-left, while every English identifier should preserve its left-to-right order and its correct position within the sentence.
Please improve bidirectional text handling and apply proper Unicode BiDi isolation to inline code. Adding an RTL or automatic text-direction option would also be helpful.
Platform: ChatGPT/Codex desktop app on Windows.
What steps can reproduce the bug?
Arabic paragraphs should be displayed from right to left.
English identifiers and inline-code elements should remain left to right and stay in their correct logical positions within the Arabic sentence.
Punctuation and sentence order should not move or become visually confusing.
What is the expected behavior?
Arabic paragraphs should be displayed from right to left.
English identifiers and inline-code elements should remain left to right and stay in their correct logical positions within the Arabic sentence.
Punctuation and sentence order should not move or become visually confusing.
Additional information
_No response_
1 Comment
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action