Incorrect BiDi (RTL/LTR) Text Rendering in Codex Chat Panel on VS Code
What version of the IDE extension are you using?
26.623.42026
What subscription do you have?
PLuse
Which IDE are you using?
VS Code
What platform is your computer?
_No response_
What issue are you seeing?
Bug: Incorrect BiDi (RTL/LTR) Text Rendering in Codex Chat Panel on VS Code
Summary
The Codex extension incorrectly renders mixed Persian (RTL) and English/code (LTR) text in both the chat input and chat output. The visual order of text becomes incorrect, making mixed-language conversations difficult to read.
Environment
Extension: Codex – OpenAI's coding agent
Extension ID: openai.chatgpt
Extension Version: 26.623.42026
VS Code Version: 1.125.1
OS: Windows 10 x64 (Build 19045)
Steps to Reproduce
Open the Codex chat panel.
Type or receive a message containing both Persian and English/code.
Example:
مهم سالم است build خواهش میکنم.
or
سلام build دنیا
Expected Behavior
The Persian text should remain right-to-left while English words and inline code should preserve their left-to-right direction without changing the surrounding sentence order.
Actual Behavior
The visual order becomes incorrect. English words or inline code cause adjacent Persian text to be reordered, making the sentence difficult to read.
The issue occurs in:
✅ Chat input box
✅ Assistant responses
Notes
This appears to be a Unicode Bidirectional (BiDi) rendering issue in the chat UI/WebView rather than a font problem.
The same Persian text displays correctly in the VS Code editor, suggesting the issue is specific to the Codex chat interface.
Additional Information
This issue is reproducible consistently on the latest versions of both VS Code and the Codex extension.
What steps can reproduce the bug?
just writing or replying
What is the expected behavior?
_No response_
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Native Persian RTL/BiDi support is still missing in ChatGPT Windows and the Codex VS Code extension
I am a paying Persian-speaking ChatGPT and Codex user. Proper right-to-left support has been repeatedly requested for a long time, but Persian text is still rendered incorrectly in both the ChatGPT Windows application and the Codex VS Code extension.
This is not merely a text-alignment issue. It is a bidirectional-text rendering problem.
Current problems
Expected implementation
Please implement native RTL and BiDi support in both ChatGPT and Codex:
dir="auto"for message containers and the message composer.unicode-bidi: plaintextto natural-language message content.dir="ltr"andunicode-bidi: isolate.Automatic,Right-to-left, andLeft-to-rightoptions.Impact
This issue makes long technical conversations extremely difficult to read and significantly reduces the usability of ChatGPT and Codex for millions of Persian, Arabic, Hebrew, and Urdu users.
Accessibility and internationalization should not depend on unsupported third-party patches. Please treat native RTL/BiDi support as a product bug and accessibility requirement rather than an optional cosmetic feature.