Skip to content

Feature request: colored TUI status line style #20012

@wesleysmyth

Description

@wesleysmyth

Feature request

Codex already lets users choose TUI status line fields via tui.status_line, but the rendered line is muted/monochrome. Dense status lines are much easier to scan when fields like model, cwd, git branch, rate limits, and context usage carry semantic color.

Proposed behavior

Add an opt-in style option that preserves the current default:

[tui]
status_line = [
  "project-name",
  "current-dir",
  "git-branch",
  "model-with-reasoning",
  "five-hour-limit",
  "weekly-limit",
  "context-remaining",
  "used-tokens",
]
status_line_style = "colored"

I prepared an upstream-ready branch on my fork:

The branch adds tui.status_line_style = "colored", renders configured status line segments as styled spans using Codex's approved TUI palette, updates the generated config schema/docs, and adds config/render tests.

Validation run on the branch

  • just fmt
  • just write-config-schema
  • just fix -p codex-tui
  • cargo test -p codex-tui
  • cargo test -p codex-core tui_status_line_style_deserializes_from_toml

I tried to open a draft PR from the fork, but GitHub rejected CreatePullRequest for my account/token against openai/codex even though the fork branch is public.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions