Terminal prints repeating 11;rgb:0404/0404/0404 sequences while Codex is open

Resolved 💬 7 comments Opened Oct 8, 2025 by khaled-wsa Closed Oct 9, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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)

  1. Navigate to a project folder:
  2. Launch Codex:
  3. 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" />

View original on GitHub ↗

7 Comments

github-actions[bot] contributor · 9 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #4759

Powered by Codex Action

khaled-wsa · 9 months ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. * On windows terminal when ssh to a linux host it render error #4759 _Powered by Codex Action_

This behavior is not limited to Windows. It also occurs on macOS and in XTERM-* and XTERM-256COLOR based terminals.

mahmoud1973 · 9 months ago

Same issue here.

gpeal contributor · 9 months ago

Duplicate of #4945

vkgo · 9 months ago

Same issue in 0.46

AaronW-BE · 9 months ago

Same issue in terminal of github codespace vscode

entslscheia · 9 months ago

yes this is stupid