codex - 💡(How to fix) Fix ←[?2026h (XTWINOPS in-band resize) breaks TUI in Visual Studio Developer PowerShell since 0.131

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Workaround: Downgrade to @openai/[email protected]

RAW_BUFFERClick to expand / collapse

Version: codex-cli 0.131.0+ (confirmed broken on 0.131, 0.132, 0.133) Working version: 0.130.0 Platform: Windows, Visual Studio Developer PowerShell (VsDevCmd.bat)

Description: After upgrading from 0.130.0 to 0.131+, the interactive TUI renders raw ANSI escape sequences instead of formatted output, making Codex completely unusable.

The corruption starts exactly when "Booting MCP server: codex_apps" runs during startup, triggered by the ←[?2026h escape sequence being sent to a console that doesn't support XTWINOPS in-band resize notification.

The console receives ←[?2026h but returns no confirmation, causing Codex to lose terminal sync and spill all subsequent escape codes as raw text.

Steps to reproduce:

  1. Open Visual Studio Developer PowerShell (via VsDevCmd.bat)
  2. Run codex.cmd in any Git repository
  3. Observe raw escape sequences flooding the screen during MCP server boot

What was tried (none worked):

  • TERM=dumb
  • TERM=xterm-256color
  • NO_COLOR=1
  • --no-alt-screen flag
  • HKCU registry VirtualTerminalLevel=1
  • Clearing .codex sessions and history

Expected: Graceful fallback when terminal doesn't respond to ←[?2026h Actual: TUI completely broken, unusable

Workaround: Downgrade to @openai/[email protected]

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix ←[?2026h (XTWINOPS in-band resize) breaks TUI in Visual Studio Developer PowerShell since 0.131