Skip to content

Input box gray background feels visually intrusive in dark/black terminal theme #27333

Open

Description

@jadchene

Summary

After upgrading to Codex v0.139.0, the prompt input box in the TUI now appears with a gray background. In a terminal theme where the overall background is pure black, this gray input area stands out quite strongly and feels visually intrusive.

It would be nice if the input box background could either be removed, made transparent/black, or controlled through a configuration option or feature flag.

Current behavior

The main Codex TUI background is pure black, but the input box uses a gray filled background.

This creates a strong visual contrast:

  • the rest of the interface blends well with the terminal theme
  • the input box becomes a large gray block
  • it feels inconsistent with the immersive dark terminal experience
  • it draws too much attention even when idle

Screenshot:

Image

Expected behavior

Preferably, the input box should match the surrounding terminal background more closely, for example:

  • no filled gray background
  • transparent background
  • pure black background in dark mode
  • or a configurable style option

A flag/config option would also be fine, for example:

[tui]
input_box_background = "transparent"

or:

codex --no-input-box-background

The exact API does not matter much; the main request is to allow users to disable the gray input background when using a pure black terminal theme.

Why this matters

For users who prefer a minimal, immersive terminal UI, especially with a pure black background, the gray input box feels too prominent. It makes the TUI look less integrated with the terminal and can be distracting during long coding sessions.

Environment

  • Codex version: v0.139.0
  • Shell: PowerShell / pwsh
  • Terminal: Windows Terminal
  • Theme: pure black background
  • OS: Windows

Suggested solution

Please consider one of the following:

  1. make the input box background transparent by default in dark/black themes
  2. reduce the contrast of the input box background
  3. add a config option or flag to disable the filled input background
  4. expose input box styling through the existing TUI/theme configuration, if available

Thanks!

Activity

  1. added
    enhancement
    CLI
    windows-os
    TUI
    on Jun 10, 2026
  2. removed
    CLI
    on Jun 12, 2026
  3. Engazan commented on Jun 27, 2026

    @Engazan

    in some cases u cant even see what u r typing ...

    Image
  4. Asianfleet commented on Jul 1, 2026

    @Asianfleet

    @Engazan

    I can reproduce a very similar issue on Windows Terminal with PowerShell 7.

    In my case, the Codex input box stayed dark gray on a light terminal background when running under pwsh. The same Windows Terminal theme looked correct when using Windows PowerShell 5.1.

    Environment:

    • Codex CLI: v0.142.4
    • PowerShell 7: 7.6.2
    • Windows PowerShell: 5.1
    • Windows Terminal
    • In pwsh, TERM and COLORTERM were both empty by default.

    Workaround that fixed it for me in pwsh:

    $env:COLORTERM = "truecolor"
    $env:TERM = "xterm-256color"
    codex

    After setting those variables, the input box background adapted correctly to the light terminal background.

    Image

    So this may be related to Codex’s terminal color capability detection when running under pwsh with TERM / COLORTERM unset.

  5. Elijas commented on Jul 15, 2026

    @Elijas

    @Engazan

    I can reproduce a very similar issue on Windows Terminal with PowerShell 7.

    In my case, the Codex input box stayed dark gray on a light terminal background when running under pwsh. The same Windows Terminal theme looked correct when using Windows PowerShell 5.1.

    Environment:

    • Codex CLI: v0.142.4
    • PowerShell 7: 7.6.2
    • Windows PowerShell: 5.1
    • Windows Terminal
    • In pwsh, TERM and COLORTERM were both empty by default.

    Workaround that fixed it for me in pwsh:

    $env:COLORTERM = "truecolor"
    $env:TERM = "xterm-256color"
    codex
    After setting those variables, the input box background adapted correctly to the light terminal background.

    Image So this may be related to Codex’s terminal color capability detection when running under pwsh with TERM / COLORTERM unset.

    This works! Thank you

  6. hikidd commented on Aug 21, 2026

    @hikidd

    Yes, really ugly...

  7. LeoLuo0115 commented on Aug 31, 2026

    @LeoLuo0115

    Add alias codex='FORCE_COLOR=1 /Users/$yourusername/.local/bin/codex' into you ~/.zshrc file it should fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIenhancementwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions