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
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
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 $TERMoutputsxterm-256color.
5 Comments
Thanks for the bug report. Apologies for the slow response — we are behind on responding to issues.
Is this problem still occurring for you with the latest version of Codex? We've made a lot of changes and improvements since 0.23.0.
@etraut-openai
Recently I don't have the issue.
Closing...
(Let me reopen the issue when I stared to having the issue again.)
I am getting these same sequences with latest codex. I am using iTerm2 3.6.6 if that makes any difference.
Can you @etraut-openai reopen this?
@hkroger, please file a new bug with configuration details (e.g. the terminal you're using) and repro steps. The problem you're seeing unlikely to be the same cause as the problem described by the OP in this thread.