Files
codex/codex-rs/tui
Eric Traut b087609f83 Keep terminal background colors when foreground replies are missing (#63191)
## Why

On Unix, terminals that report a background color without a foreground
color would lose both from the TUI palette. This left the composer
without shading based on the terminal background.

## What changed

Keep the background reply from startup and standalone color probes while
giving the foreground reply the rest of the existing probe window.
Use the reported background for composer shading. When either color is
missing, render the empty-state logo in the terminal's default foreground
and use the fallback color pair for shimmer.

## Testing

Cover background retention at the startup deadline, a foreground reply
arriving after the background, and rendering a shaded composer with the
logo in the default foreground.

GitOrigin-RevId: a3ce859eb04a21cfa9742d28b57fa98d4c26e0cc
2026-11-22 21:04:17 +00:00
..