Skip to content

Incorrect BiDi (RTL/LTR) Text Rendering in Codex Chat Panel on VS Code #30414

Open

Description

@mrhb

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

Activity

  1. added
    extension
    on Jun 28, 2026
  2. added
    bug
    on Jun 28, 2026
  3. github-actions commented on Jun 28, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions