Escape sequences such as `[105;1:3u` are inserted when typing prompts

Resolved 💬 5 comments Opened Aug 22, 2025 by your-diary Closed Nov 3, 2025

What version of Codex is running?

codex-cli 0.23.0

Which model were you using?

_No response_

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

When I type a prompt, escape sequences are often inserted.

For example, when I type

What response will be returned when an expire

, the actual result is

What response will be returned when an expi[105;1:3ure[114;1:3u

, meaning two escape sequences [105;1:3u and [114;1:3u are inserted for some reason.

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

  • I'm using iTerm2 as a terminal emulator.
  • echo $TERM outputs xterm-256color.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗