You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Regression] 0.157.1 inserts raw mouse escape sequences in PyCharm terminal on Windows #48407
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Affected: codex-cli 0.157.1. Downgraded to 0.156.1, which resolves the issue.
What subscription do you have?
Pro
Which model were you using?
Astra
What platform is your computer?
Windows, x64
What terminal emulator and version are you using (if applicable)?
PyCharm integrated terminal, PowerShell.
Codex doctor report
What issue are you seeing?
After updating Codex CLI to 0.157.1, moving the mouse over the PyCharm
integrated terminal inserts raw mouse-reporting escape sequences into the
input.
Examples:
[M#:G[M#;G
[M HH[M#HH
This makes normal input and mouse-based copying difficult. The problem
disappeared after downgrading to 0.156.1 and opening a fresh terminal tab.
What steps can reproduce the bug?
Run Codex CLI 0.157.1 in PyCharm's integrated terminal on Windows.
Move the mouse over the terminal.
Observe raw escape sequences appearing in the input without typing.
What is the expected behavior?
Moving the mouse should not insert control sequences into the text input.
Additional information
Installed using the official standalone Windows installer, not npm.
Restarting the terminal and resuming Codex did not help.
Attempting to disable mouse-reporting modes 1000, 1002, 1003 and 1006 did not
help.
Downgrading from 0.157.1 to 0.156.1 resolved the issue. The installed version
was verified with codex --version.
The exact PyCharm terminal engine was not recorded. The underlying cause has
not been established.
@ruanjianlun , this issue has been closed. If you'd like to report a bug, please open a new bug report and supply the requested information in the bug template.
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Sep 26, 2026
Thanks for the bug report. We have a fix in place for this, and it will be included in an upcoming release (probably 0.159.0).
ruanjianlun commentedon Oct 16, 2026
etraut-openai commentedon Oct 16, 2026
@ruanjianlun , this issue has been closed. If you'd like to report a bug, please open a new bug report and supply the requested information in the bug template.