Skip to content

Mouse movement inserts escape sequences into Codex CLI input in Android Studio on Windows #48920

Closed as duplicate

Description

@aidanmocke

What version of Codex CLI is running?

codex-cli 0.158.0-alpha.2.1

What subscription do you have?

Plus

Which model were you using?

gpt-6 sol

What platform is your computer?

Windows

What terminal emulator and version are you using (if applicable)?

Android Studio 2026.1.4 integrated terminal

Codex doctor report

not applicable

What issue are you seeing?

The Codex input area fills with repeated characters resembling mouse escape sequences. It happens with the Classic terminal engine too.

What steps can reproduce the bug?

Enable Mouse reporting in Android Studio’s terminal settings, start Codex CLI normally, then move the mouse over the terminal.

What is the expected behavior?

Moving the mouse should not insert text.

Additional information

Workaround: Disabling Settings → Tools → Terminal → Mouse reporting stops it.

Activity

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

    @etraut-openai
    Contributor

    We added a fix for a related problem in 0.158.0. If you update to that version, do you still see this problem?

  4. etraut-openai commented on Oct 12, 2026

    @etraut-openai
    Contributor

    Closing as a likely duplicate of #52003, which tracks mouse-event fragments entering Codex input in JetBrains terminals on Windows on newer CLI versions. Disabling Android Studio’s Terminal → Mouse reporting remains the workaround described here; the bug is still open in #52003.

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