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_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗