Skip to content

[Regression] 0.157.1 inserts raw mouse escape sequences in PyCharm terminal on Windows #48407

Closed

Description

@TiroBite

What version of Codex CLI is running?

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?

  1. Run Codex CLI 0.157.1 in PyCharm's integrated terminal on Windows.
  2. Move the mouse over the terminal.
  3. 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.

Activity

  1. added
    bug
    on Sep 26, 2026
  2. added
    CLI
    windows-os
    TUI
    on Sep 26, 2026
  3. github-actions commented on Sep 26, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. etraut-openai commented on Sep 26, 2026

    @etraut-openai
    Contributor

    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).

  5. ruanjianlun commented on Oct 16, 2026

    @ruanjianlun

    Image OpenAI Codex (v0.163.0)

    Image The problem has not been solved!

  6. etraut-openai commented on Oct 16, 2026

    @etraut-openai
    Contributor

    @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.

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