codex CLI crashes in xterm

Open 💬 0 comments Opened Mar 17, 2026 by mahendra202602

What version of Codex CLI is running?

v0.112.0

What subscription do you have?

Corporate Subscription

Which model were you using?

gpt-5.4, gpt-5.3-codex

What platform is your computer?

Linux 5.15.0-316.196.4.1.el8uek.x86_64 x86_64 x86_64

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

xterm

What issue are you seeing?

codex CLI is crashing for multiple users in our org when run inside xterm.

During normal codex usage, xterm exits with the following error:

xterm: warning, error event received:
X Error of failed request: BadValue (integer parameter out of range for
operation)
Major opcode of failed request: 91 (X_QueryColors)
Value in failed request: 0xffffffff
Serial number of failed request: 96762
Current serial number in output stream: 96762

What steps can reproduce the bug?

  1. Launch a standard xterm session with default color-operation behavior

enabled.

  1. Start the codex CLI.
  2. Use the CLI normally until the crash occurs. Users report this happens

during regular interactive usage in xterm.

What is the expected behavior?

_No response_

Additional information

This is impacting multiple users.

View original on GitHub ↗