Repository navigation
Description
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.

Related:
- WebStorm built-in terminal: Codex CLI v0.74.0-0.75.0 starts printing random [M... characters (looks like raw mouse-tracking escape sequences) #8312 — nearly identical
[M...mouse-reporting corruption in the JetBrains WebStorm integrated terminal. - Windows Terminal focus events [O/[I are inserted into TUI prompt on 0.134.0 #24929 — raw terminal focus-reporting sequences leaking into the TUI on Windows.
Activity
downtown1629 commentedon Sep 25, 2026
Android Studio also have same issue. (Android Studio Quail 4 | 2026.1.4 Patch 1, Windows 11 25H2)
vinay-skycliff-it commentedon Sep 25, 2026
20260925-0924-11.3686197.mp4
vinay-skycliff-it commentedon Sep 25, 2026
Change tui to "Scrollback" & relaunch, it'll work
tkrull75 commentedon Sep 26, 2026
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:
This made normal typing, selecting, copying, and pasting effectively unusable.
Diagnostic checks found:
This confirms the regression is not limited to JetBrains integrated terminals and provides a second successful rollback test.
Transient-Onlooker commentedon Sep 26, 2026
Need a quick fix. this really makes me tired.g
SoleCloth7 commentedon Sep 27, 2026
Downgrade lol
wang1092791404 commentedon Sep 28, 2026
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:
codex --no-alt-screenhas the same effect.The workaround has a UX cost: inline/scrollback mode permanently prints each
Ran,Explored, andEditedactivity 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.
bc-openai commentedon Oct 2, 2026
Thanks for the report! This should be fixed in 0.159.0.
aphyllo commentedon Oct 3, 2026
The regression still reproduces on codex-cli 0.159.3, despite the closure note saying it should be fixed in 0.159.0.
Environment:
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.