Skip to content

TUI fails rendering for latex code #32828

Closed

Description

@jchy20

What version of Codex CLI is running?

v0.144.3

What subscription do you have?

pro

Which model were you using?

No response

What platform is your computer?

Linux 5.14.0-503.40.1.el9_5.x86_64 x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

iTerm2

Codex doctor report

What issue are you seeing?

Substantial TUI rendering incompatibility with codex output in latex.

\[
\sigma_{\ell,m}[i,j]
=
\operatorname{std}_s D_{\ell,m,s}[i,j]
\]

What steps can reproduce the bug?

Uploaded thread: 019f52dd-b847-79e3-9e5f-b9ed434b7c90

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Jul 13, 2026
  2. added
    CLI
    TUI
    on Jul 13, 2026
  3. willmargs commented on Jul 16, 2026

    @willmargs

    yeah, codex can't render latex, no good

  4. bernaferrari commented on Jul 17, 2026

    @bernaferrari

    Duplicated of #14985

  5. imvladikon commented on Jul 29, 2026

    @imvladikon

    I implemented it here. Please take a look:
    https://github.com/imvladikon/codex/tree/feat/latex-rendering
    and I’ll try to open a PR.
    PS. The only remaining issue is making it optional, since some users may still want to see the raw latex so they can copy and paste it.

    Image
  6. cowwoc commented on Aug 31, 2026

    @cowwoc

    @imvladikon alt+r toggles between raw vs rendered mode, so users can copy the raw code this way if needed.

  7. etraut-openai commented on Nov 9, 2026

    @etraut-openai
    Contributor

    The TUI gained support for standalone display equations in #45612, shipped in Codex CLI 0.156.0.

    After upgrading from 0.144.3, the equation in your report should render as Unicode math when the assistant puts it between \[ and \] on their own lines. The renderer recognizes \sigma, \ell, and \operatorname{std}. If the assistant puts the equation inside a Markdown code block, the TUI displays the literal LaTeX so it can be copied.

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

    CLITUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions