Repository navigation
Description
Summary
On Windows, Codex CLI in the IntelliJ IDEA integrated terminal prints raw mouse-reporting escape sequences such as [MC... when the mouse is moved over the terminal while Codex is running.
This regression started after upgrading from Codex CLI 0.156.1. It is still reproducible with 0.158.0.
Environment
- OS: Windows
- IDE: IntelliJ IDEA integrated terminal
- Codex install: standalone Windows installer
- Codex executable:
C:\Users\<user>\AppData\Local\Programs\OpenAI\Codex\bin\codex.exe
Versions tested
codex-cli 0.156.1: works correctlycodex-cli 0.157.0: regression presentcodex-cli 0.158.0: regression still present
The daemon issue seen in 0.157.0 appears to be fixed in 0.158.0, but this IntelliJ terminal mouse-reporting regression remains.
Reproduction steps
- Open IntelliJ IDEA on Windows.
- Open the integrated Terminal.
- Enable
Mouse reportingin IntelliJ Terminal settings. - Start Codex:
codex
- Move the mouse pointer over the terminal.
Actual behavior
Raw mouse event/control sequences are printed into the Codex terminal output, e.g. sequences beginning with:
[MC...
The output appears only while moving the mouse over the IntelliJ terminal.
Expected behavior
Mouse-reporting sequences should be handled by the TUI/terminal and should not be rendered as visible text.
Additional observations
- The problem is specific to the IntelliJ integrated terminal.
- Running Codex in a normal Windows Terminal / PowerShell does not show the issue.
- Switching IntelliJ Terminal engine to
Classicdoes not fix it. - With
Mouse reporting = ON, raw mouse escape sequences are printed. - With
Mouse reporting = OFF, the escape sequences disappear, but mouse-wheel scrollback in the IntelliJ terminal no longer works. Shift+PageUp/Shift+PageDowndo not work as a practical scrollback workaround in this setup.- Downgrading to
codex-cli 0.156.1restores normal behavior.
This suggests a TUI / terminal mouse-mode regression introduced after 0.156.1 that affects JetBrains integrated terminals on Windows.
Activity
github-actions commentedon Sep 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
hatamisd commentedon Sep 28, 2026
This appears to be a duplicate of #48030.
I can confirm the same behavior in IntelliJ IDEA on Windows.
The issue only occurs in the JetBrains integrated terminal; Windows Terminal / PowerShell works normally.
Closing this issue in favor of [Windows][JetBrains Rider] Codex CLI 0.157.0 prints raw [M... mouse-reporting sequences in integrated terminal #48030.