Terminal prints repeating 11;rgb:0404/0404/0404 sequences while Codex is open
What version of Codex is running?
codex-cli 0.45.0
Which model were you using?
gpt-5-codex
What platform is your computer?
Darwin 25.0.0 arm64 arm
What steps can reproduce the bug?
SSH into a Debian or Ubuntu cloud instance (or run Codex in a minimal terminal, remote console or the normal MacOS terminal)
- Navigate to a project folder:
- Launch Codex:
- Observe the terminal repeatedly printing lines similar to:
› 11;rgb:0404/0404/040410;rgb:fefe/ffff/ffff11;rgb:0404/0404/040411;rgb:0404/0404/040411;rgb:0404/0404/0404
These continue as long as the keyboard input area is open.
What is the expected behavior?
Codex should open a clean interactive prompt with no stray text output. The OSC color query responses (used to detect terminal foreground/background colors) should be handled silently by the terminal and not printed to the screen.
What do you see instead?
While Codex is open, the terminal continuously displays OSC 10/11 replies like 11;rgb:... and 10;rgb:....
They appear as plain text lines and fill the screen until the app is closed or redrawn.
The rest of Codex continues to function, but the repeated text makes the session hard to read, having to keep clearing the input field by CTRL+C every few seconds.
› 11;rgb:0404/0404/040410;rgb:fefe/ffff/ffff11;rgb:0404/0404/040411;rgb:0404/0404/040411;rgb:0404/0404/0404
It can also change to look like this in macos for example:
› 10;rgb:ffff/ffff/ffff11;rgb:1e1e/1e1e/1e1e10;rgb:ffff/ffff/ffff11;rgb:1e1e/1e1e/1e1e10;rgb:ffff/ffff/ffff11;rgb:1e1e/1e1e/1e1e
Additional information
Suspected cause:
Codex or one of its dependencies issues OSC 10/11 terminal color queries to detect the theme colors. Some terminals or multiplexers echo these responses instead of suppressing them, producing visible garbage output.
It was happening also in version 0.44.0 but its producing these echos much faster in 0.45.0.
<img width="960" height="207" alt="Image" src="https://github.com/user-attachments/assets/afe56642-c576-4d41-8acd-cf18114dc639" />
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This behavior is not limited to Windows. It also occurs on macOS and in XTERM-* and XTERM-256COLOR based terminals.
Same issue here.
Duplicate of #4945
Same issue in 0.46
Same issue in terminal of github codespace vscode
yes this is stupid