Skip to content

Codex v0.131.0 terminal corruption after codex_apps MCP startup on Windows #23512

@Pedro-Fernandes

Description

@Pedro-Fernandes

What version of Codex CLI is running?

v0.131.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.5

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

PowerShell

Codex doctor report

What issue are you seeing?

After upgrading to 0.131.0, Codex starts normally but the terminal UI becomes corrupted immediately after:

Booting MCP server: codex_apps

The terminal then fills with ANSI/control escape sequences like:

←[49m←[K←[52;27H...

The issue appears project-specific:

some repositories work normally
some repositories consistently trigger the corruption

Downgrading back to 0.130.0 fully resolves the issue.

Image

What steps can reproduce the bug?

npm install -g @openai/codex@0.131.0
cd
codex

What is the expected behavior?

no ANSI characters, normal text startup

Additional information

  • AGENTS.md content does not appear to be the cause
  • deleting .codex did not resolve it
  • corruption starts specifically during MCP server startup
  • issue reproduced in Windows Terminal using PowerShell
  • renaming some large folders slightly delayed the corruption but did not prevent it

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serverswindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions