Skip to content

**Codex CLI 0.158.0 regression on Windows + IntelliJ IDEA: mouse movement inserts terminal characters and corrupts Codex panel** #49029

Closed

Description

@habatlogistiqocom

Environment

  • OS: Windows 11 Pro 25H2
  • Codex CLI:
    • Working version: 0.156.1
    • Broken version: 0.158.0

IDE Environment

  • IDE: IntelliJ IDEA 2024.3.4 Ultimate Edition
  • Build: IU-243.25659.39 (built February 27, 2025)
  • Runtime: OpenJDK 21.0.6+8-b631.39 amd64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains
  • Toolkit: sun.awt.windows.WToolkit
  • CPU: 16 cores
  • Memory: 7680 MB

Relevant IntelliJ Plugins

  • GlassFish: 243.21565.129
  • Payara IntelliJ Plugin: 1.12.0
  • Java EE EJB support: 243.22562.13
  • JSF Plugin: 243.21565.129
  • MavenRunHelper: 4.29.0-IJ2022.2
  • IntelliJ ML/LLM Plugin: 243.23654.270.9

Problem

After updating Codex CLI from 0.156.1 to 0.158.0, the Codex panel inside IntelliJ IDEA became unusable.

The problem appears to be related to mouse interaction.

When moving the mouse inside the Codex panel:

  • Strange characters are inserted into the Codex output.
  • The characters look like terminal escape/control sequences.
  • Every mouse movement can generate additional corrupted characters.
  • The Codex panel becomes increasingly corrupted and difficult to use.
  • Additional Windows Terminal windows opened unexpectedly during the issue.

The problem does not occur with Codex CLI 0.156.1 on the same machine and same IntelliJ IDEA installation.


Steps to reproduce

  1. Update Codex CLI:
npm install -g @openai/codex@0.158.0
  1. Open IntelliJ IDEA.
  2. Open the Codex panel.
  3. Start a normal Codex session.
  4. Move the mouse inside the Codex panel / terminal area.

Result:

  • Terminal-like garbage characters appear immediately.
  • Continued mouse movement makes the output corruption worse.

Expected behavior

Mouse movement should have no effect on the Codex text output.

The Codex panel should remain stable and usable.


Actual behavior

Mouse movement appears to send or expose terminal control sequences which are rendered as visible characters in the Codex panel.

The panel becomes corrupted.


Regression information

This is a version regression:

Same machine:

✅ Codex CLI 0.156.1

  • Works normally

❌ Codex CLI 0.158.0

  • Mouse movement causes corruption

Rollback command:

npm install -g @openai/codex@0.156.1

After rollback:

codex-cli 0.156.1

The problem disappears immediately.


Additional notes

The issue seems related to terminal mouse handling or escape sequence processing in the IntelliJ integrated environment.

Screenshot attached showing the corrupted Codex panel output.

Activity

  1. added
    bug
    CLI
    windows-os
    TUI
    on Sep 28, 2026
  2. bc-openai commented on Oct 2, 2026

    @bc-openai
    Contributor

    Thanks for the report! This should be fixed in 0.159.0.

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

    CLITUIbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions