Skip to content

[Windows app] Hebrew RTL/BiDi replies are left-aligned and mixed LTR text becomes unreadable #32157

Open

Description

@alonjacobitoluna

What version of the Codex App are you using?

ChatGPT/Codex Windows Store app 26.707.3563.0 (x64)

What platform is your computer?

Windows x64

What issue are you seeing?

Hebrew assistant responses in the Windows desktop app are always left-aligned. When a response mixes Hebrew with English terms, inline code, file paths, commands, URLs, numbers, or punctuation, the visual order becomes confusing and the response is difficult to read.

This is a renderer issue rather than a prompting issue. Custom instructions can change the response text, but they cannot change the message container's CSS direction or alignment.

Steps to reproduce

  1. Open the ChatGPT/Codex desktop app on Windows.

  2. Start a conversation in Hebrew.

  3. Ask for a response that contains English technical terms or inline code, for example:

    תבדוק למה `npm test` נכשל בקובץ `src/app/page.tsx` ותציע תיקון.
    
  4. Observe the assistant response.

  5. Try a longer response containing a Markdown list, commands, file paths, URLs, and English identifiers.

Actual behavior

  • Hebrew prose is left-aligned.
  • Mixed Hebrew and LTR technical fragments disturb the surrounding sentence order.
  • Inline code, paths, URLs, punctuation, and numbers can appear in visually confusing positions.
  • Wrapping the response in raw HTML such as <div dir="rtl" align="right"> does not change alignment.
  • Prefixing paragraphs with U+200F RIGHT-TO-LEFT MARK improves neither the block alignment nor the overall layout.

Expected behavior

  • Hebrew paragraphs should be detected as RTL and align to the right.
  • Each prose block should determine its own direction so mixed-language responses remain readable.
  • Inline code, paths, URLs, commands, identifiers, logs, diffs, and code blocks should remain isolated LTR.
  • The composer, user message, and assistant message should render consistently.

Investigation on the packaged Windows build

Inspection of the packaged renderer in 26.707.3563.0 found:

  • The assistant message wrapper is rendered without a dir attribute.
  • The Markdown renderer's basic-HTML attribute allowlist does not permit dir, align, style, or class, so model-emitted HTML cannot correct the layout.
  • The app bundle already contains utilities for direction: rtl, direction: ltr, and unicode-bidi: plaintext, but the assistant message rendering path does not apply them to Hebrew prose blocks.

Suggested fix

Apply directionality in the trusted renderer rather than relaxing the raw-HTML sanitizer:

  • Add dir="auto" to rendered paragraphs, headings, list items, and blockquotes, or to an equivalent per-block wrapper.
  • Use text-align: start for prose blocks.
  • Keep pre, code blocks, terminal output, diffs, file paths, URLs, and technical fragments explicitly LTR.
  • Apply unicode-bidi: isolate or <bdi> semantics to inline LTR fragments.
  • Add regression fixtures for Hebrew mixed with English, code, paths, URLs, numbers, Markdown lists, and tables.

Related issues

This report is Windows-specific and includes findings from the packaged Windows renderer.

Activity

  1. added
    bug
    app
    windows-os
    on Jul 10, 2026
  2. github-actions commented on Jul 10, 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

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions