Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.170.0, official standalone Linux x86_64 musl binary.
Version scope: this was observed and captured on 0.170.0. Release 0.171.0 became available on November 20; this report has not been retested on 0.171.0.
What subscription do you have?
Not included; this report concerns local TUI rendering before any model request.
Which model were you using?
The issue is visible when opening the slash-command picker without submitting a model request.
What platform is your computer?
Ubuntu 26.04.1 LTS under WSL2, x86_64.
Linux 6.18.33.2-microsoft-standard-WSL2.
What terminal emulator and version are you using (if applicable)?
VS Code 1.147.0 integrated terminal, with tmux 3.6.
The attached tmux client reports xterm.js(6.1.0-beta.337), TERM=xterm-256color, and RGB among its terminal features.
The actual running native Codex process environment, inspected via /proc//environ:
TERM=tmux-256color
COLORTERM=truecolor
TERM_PROGRAM=tmux
TERM_PROGRAM_VERSION=3.6
NO_COLOR is unset
FORCE_COLOR is unset
Relevant settings:
tmux default-terminal: tmux-256color
tmux allow-passthrough: off
Codex tui.alternate_screen: always
Codex doctor report
Not collected for this report. The tool-running shell does not share the interactive terminal environment, so the terminal evidence below was collected directly from the live tmux pane and the actual Codex process instead.
What issue are you seeing?
Inside tmux, typing / opens a slash-command picker whose command names appear white/monochrome, without the blue selection styling seen outside tmux in the same VS Code terminal. Other Codex highlighting remains colored.
A read-only tmux capture-pane -p -e capture of the live open picker shows the selected command rendered with reverse-video, without an explicit blue foreground/background:
\x1b[1;7m› /ide \x1b[0;7minclude current selection, open files, and other context from your IDE\x1b[1m
The escapes above are displayed in literal notation. SGR 7 is reverse-video; SGR 1 is bold. Other visible rows use default colors and dim descriptions. The same captured screen contains multiple truecolor 38;2;... foreground sequences elsewhere, so this is not a complete loss of terminal color support.
The outside-tmux appearance is based on visual comparison; an equivalent outside-tmux escape-code capture has not yet been collected.
What steps can reproduce the bug?
- Open the VS Code integrated terminal connected to WSL2.
- Run Codex CLI 0.170.0 inside tmux 3.6, with the environment above.
- Type
/and leave the command picker open without executing a command. - Observe the monochrome/reverse-video selection, while other Codex highlighting remains colored.
- Compare with Codex outside tmux in the same terminal, where the expected blue selection styling appears.
What is the expected behavior?
When truecolor works, the slash-command picker should retain its blue selection styling inside tmux, consistent with the same terminal outside tmux. A missing terminal-background response should not unnecessarily remove the selection color when a readable fallback is possible.
Additional information
The version-matched source provides a plausible explanation, not a confirmed internal trace:
- command_popup.rs uses the shared selection style.
- style/contrast.rs falls back to default foreground/background plus bold and reverse-video when the terminal background is unavailable, or when the fill cannot be resolved for the color level.
The captured style matches that fallback. An unavailable terminal-background probe result is suspected, but the internal cached palette was not directly inspected, and this report does not establish the precise cause of a probe failure.
Related: #22761 tracks composer/pill background loss in tmux; #36918 was closed as its duplicate. This report focuses specifically on the slash-command picker's selected-row styling in 0.170.0. The symptoms may be related, but a shared root cause has not been confirmed.
Activity
r266-tech commentedon Nov 21, 2026
I reproduced this on the released Codex CLI 0.171.0 (Linux arm64) inside tmux 3.8. I kept
TERM=tmux-256color,COLORTERM=truecolor, the tmux client'sRGBfeature andallow-passthrough=offfixed. I changed only which default-color queries the terminal fixture answered at startup, then opened the picker with/.tmux capture-pane -p -e48;2;99;168;248)1;7), default colors1;7), default colors1;7), default colorsAll four runs emitted truecolor elsewhere on the screen. I got the same selected styles on a direct PTY with the same terminal environment. The background-only case is useful here because the picker consumes
default_bg(), while the Unix parser requires both replies before it returns a palette. The original VS Code / tmux 3.6 session still needs an OSC trace to identify which reply goes missing. Palette parser · Picker selection styleAI-assisted reproduction. The fixture only opened the local picker, with networking disabled.