Skip to content

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

@miraj0072004

Description

@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
  4. Press the left arrow key several times to move backward through the sentence.
  5. Observe that characters passed by the cursor become hidden/disappear visually.
  6. Press the right arrow key several times.
  7. Observe similar visual hiding/redraw behavior.
  8. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions