Skip to content

[Windows][JetBrains Rider] Codex CLI 0.157.0 prints raw [M... mouse-reporting sequences in integrated terminal #48030

Closed

Description

@flyflippy-prog

What version of Codex CLI is running?

codex-cli 0.157.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

Model-independent. The issue appears to be related to TUI/terminal input handling.

What platform is your computer?

Windows 11 x64 (Microsoft Windows NT 10.0.26200.0 x64)

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

JetBrains Rider 2026.2.2 integrated terminal Shell: PowerShell

Codex doctor report

Codex Doctor v0.157.0 · windows-x86_64
Environment
  ✓ system       en-US
  ✓ disk         sufficient free disk space (51.7 GiB)
  ⚠ security     Microsoft Defender can interfere with Codex. Verify Codex exclusions.
  ✓ install      consistent
  ⚠ git          this worktree is not on a Windows Dev Drive; moving it to a trusted Dev Drive can significantly improve repository and filesystem performance — create a trusted Windows Dev Drive for source repositories: https://learn.microsoft.com/en-us/windows/dev-drive/
  ✓ git          git executable found; execution not verified
  ✓ terminal     unknown
  ✓ title        default · project MOS_2026
  ✓ state        databases healthy
  ✓ threads      rollout files and state DB thread inventory agree

Configuration
  ✓ config       loaded
  ✓ auth         auth is configured
  ✓ mcp          1 server (1 streamable_http) · 0 disabled
  ✓ sandbox      restricted fs + restricted network · approval OnRequest
  ✓ sandbox      no explicit filesystem paths to probe

Updates
  ✓ updates      update configuration is locally consistent

Connectivity
  ✓ network      no proxy env vars
  ✓ websocket    connected (HTTP 101 Switching Protocols) · 15s timeout
  ✓ reachability active provider endpoints are reachable over HTTP

Background Server
  ○ app-server   not running (ephemeral mode)

What issue are you seeing?

After upgrading from Codex CLI 0.156.1 to 0.157.0, the Codex TUI intermittently starts printing large amounts of what appear to be raw terminal mouse-reporting escape sequences directly into the JetBrains Rider integrated terminal.

The visible output contains repeated sequences similar to:

[MCF'[MCG'[MCH'[MCI'[MCH...
[M0z0[M0y0[M0x0...

What steps can reproduce the bug?

Steps to reproduce
Open JetBrains Rider 2026.2.2 on Windows.
Open Rider's integrated terminal using PowerShell.

Run:
codex

Use Codex normally, including mouse movement, clicking, and scrolling.
After some time, the TUI may start printing repeated [M... sequences into the terminal.

Once triggered, the terminal can be flooded with these sequences.

What is the expected behavior?

Terminal mouse/focus control sequences should be decoded and consumed by the TUI and should never appear as visible text.

Additional information

Confirmed workaround
The issue stopped reproducing after changing the Codex configuration to:

[tui]
fullscreen_transcript = false

and restarting Codex.

Regression
This started after upgrading:
0.156.1 -> 0.157.0

JetBrains Rider: 2026.2.2

A screenshot showing the corrupted terminal output is attached.
Image

Related:

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added
    CLI
    windows-os
    TUI
    on Sep 25, 2026
  3. downtown1629 commented on Sep 25, 2026

    @downtown1629

    Android Studio also have same issue. (Android Studio Quail 4 | 2026.1.4 Patch 1, Windows 11 25H2)

  4. vinay-skycliff-it commented on Sep 25, 2026

    @vinay-skycliff-it
    20260925-0924-11.3686197.mp4
  5. vinay-skycliff-it commented on Sep 25, 2026

    @vinay-skycliff-it

    Change tui to "Scrollback" & relaunch, it'll work

  6. tkrull75 commented on Sep 26, 2026

    @tkrull75

    Independent confirmation from Windows Terminal 1.24.11911.0 using PowerShell.

    After upgrading Codex CLI 0.156.1 → 0.157.0, moving the mouse caused the prompt/editor to fill with raw sequences such as:

    [MCTB[MCUB[MCVA[MCWA[MCX@[MCY@[MCZ?
    

    This made normal typing, selecting, copying, and pasting effectively unusable.

    Diagnostic checks found:

    • No PlatformIO or other serial-monitor process was running.
    • A CH343 device was present on COM3, but no process had opened it as a serial monitor.
    • Terminal reset attempts and restarting Windows Terminal did not resolve the problem.
    • Repointing the retained Codex installation back to 0.156.1 fixed the problem immediately after restart.

    This confirms the regression is not limited to JetBrains integrated terminals and provides a second successful rollback test.

  7. Transient-Onlooker commented on Sep 26, 2026

    @Transient-Onlooker

    Need a quick fix. this really makes me tired.g

  8. SoleCloth7 commented on Sep 27, 2026

    @SoleCloth7

    Need a quick fix. this really makes me tired.g

    Downgrade lol

  9. wang1092791404 commented on Sep 28, 2026

    @wang1092791404

    Independent reproduction on Windows 10 (10.0.19045) with the IntelliJ IDEA integrated terminal, PowerShell 7.6.2, and Codex CLI 0.157.1.

    Mouse movement/clicks in the fullscreen TUI can leak raw mouse-reporting sequences into the prompt. This configuration reliably avoids the corruption:

    [tui]
    alternate_screen = "never"
    raw_output_mode = false

    codex --no-alt-screen has the same effect.

    The workaround has a UX cost: inline/scrollback mode permanently prints each Ran, Explored, and Edited activity cell, so long sessions become visually noisy. That related presentation issue is tracked in #18396.

    I checked the 0.158.0 release notes and its commit list. I could not find a fix for the JetBrains mouse-sequence leak or a mouse-disabled fullscreen mode. I have not claimed a direct 0.158.0 reproduction because this machine is currently on 0.157.1.

    A useful resolution would be either correct JetBrains terminal mouse-capability handling, or a fullscreen TUI option that disables mouse reporting while retaining alternate-screen rendering.

  10. bc-openai commented on Oct 2, 2026

    @bc-openai
    Contributor

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

  11. aphyllo commented on Oct 3, 2026

    @aphyllo

    The regression still reproduces on codex-cli 0.159.3, despite the closure note saying it should be fixed in 0.159.0.

    Environment:

    • Windows NT 10.0.26200.0
    • VS Code 1.140.0 integrated terminal
    • codex-cli 0.159.3

    During a Codex TUI security/setup prompt, the terminal filled with repeated raw [M... sequences even with the physical keyboard disconnected. The visible pattern is consistent with legacy CSI M mouse-reporting bytes, so this is not ordinary keyboard input.

    Could you reopen this issue? The fix appears incomplete or the bug has regressed in the VS Code integrated terminal.

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