Input prompt box renders as dark background in Light Themes (Solarized Light) over SSH to Windows

Open 💬 8 comments Opened Jun 16, 2026 by kzh125
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

codex-cli 0.140.0

What subscription do you have?

Plus

Which model were you using?

_No response_

What platform is your computer?

Darwin 25.5.0 arm64 arm / Microsoft Windows NT 10.0.26100.0 x64

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

VS Code/Ghostty

Codex doctor report

What issue are you seeing?

In recent versions of codex, when connecting to a Windows Server via SSH from a macOS/Linux terminal, the chat input prompt window renders with a solid dark/black background. This happens even when the terminal emulator is using a Light Theme (such as Solarized Light), making the text hard to read or visually disruptive.

This seems to be a regression, as this behavior did not occur in older versions of codex under the exact same environment.

<img width="635" height="240" alt="Image" src="https://github.com/user-attachments/assets/fb39255b-0e50-4a1d-8227-166dc2398ea2" />

<img width="1068" height="424" alt="Image" src="https://github.com/user-attachments/assets/31893468-cc0f-4179-bdca-23bdfee78a59" />

What steps can reproduce the bug?

  1. Use a macOS terminal emulator (e.g., Ghostty or VS Code built-in terminal) configured with a Light Theme (Solarized Light).
  2. SSH into a Windows Server using standard SSH commands, or explicitly forcing terminal environment variables:
   ssh user@server
   # OR
   ssh -o SetEnv="TERM=xterm-256color COLORTERM=truecolor" user@server

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

8 Comments

github-actions[bot] contributor · 1 month ago

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

  • #27333

Powered by Codex Action

JamieNg · 1 month ago

TERM=dumb used to be a fine workaround. But now it dark always.

HeroHong · 1 month ago

I've encountered this problem too.
<img width="1418" height="423" alt="Image" src="https://github.com/user-attachments/assets/1d47fac4-5fe0-43ac-8685-d3f61e7f6e36" />

HeroHong · 1 month ago

This is version 0.137.0
<img width="1098" height="691" alt="Image" src="https://github.com/user-attachments/assets/2c874f64-8006-4772-ac51-f17417343370" />

fcoury-oai contributor · 1 month ago

I can't seem to replicate it using Windows Terminal or VSCode terminal. What terminal are you using and with what theme specifically @HeroHong @kzh125 ?

kzh125 · 1 month ago

I use VS Code/Ghostty in MacOS @fcoury-oai

JamieNg · 1 month ago

Wezterm, Alacritty also have black input box.

Elijas · 5 days ago

✅ Workaround

Launch with

COLORTERM="truecolor" TERM="xterm-256color" codex

source