Codex CLI prompt text disappears when moving cursor with arrow keys in PHPStorm/JetBrains terminal

Open 💬 0 comments Opened May 11, 2026 by miraj0072004

What version of Codex CLI is running?

codex-cli 0.130.0

What subscription do you have?

plus

Which model were you using?

gpt-5.5

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

PHPStorm integrated terminal / JetBrains JediTerm

What issue are you seeing?

When using Codex CLI inside PHPStorm's integrated terminal on Windows, prompt text visually disappears while editing with left/right arrow keys.

If I type a sentence in the Codex prompt and move the cursor backward with the left arrow, characters passed by the cursor become hidden/disappear visually. Moving forward with the right arrow has the
same issue.

The input buffer is not lost. When I press Enter, the full prompt is submitted correctly. The bug appears to be only with live prompt redraw/rendering in the Codex TUI.

Normal shell input in the same PHPStorm terminal does not reproduce the issue. It only happens inside a Codex session.

What steps can reproduce the bug?

What steps can reproduce the bug?

  1. Open PHPStorm integrated terminal on Windows.
  2. Start Codex CLI with codex.
  3. At the Codex prompt, type a sentence, for example:

This is a test sentence for cursor movement

  1. Press the left arrow key several times to move backward through the sentence.
  2. Observe that characters passed by the cursor become hidden/disappear visually.
  3. Press the right arrow key several times.
  4. Observe similar visual hiding/redraw behavior.
  5. Press Enter.

Result: the complete prompt is submitted, including the text that was visually hidden.

What is the expected behavior?

The Codex prompt should keep the full input text visible while moving the cursor left or right through the line.

Additional information

_No response_

View original on GitHub ↗