Skip to content

Feature proposal: configurable TUI prompt glyph and background #15278

Closed as not planned

Description

@ggb667

Summary

Add runtime configuration for the TUI prompt glyph and prompt background color.

Why

This makes user prompts:

  • visually distinct from system and output text
  • easier to identify at a glance
  • easier to match with terminal tab/workspace colors in tools like Warp and similar terminals
  • more usable across multiple concurrent sessions

This is especially helpful when several Codex sessions are open at once and the user wants prompt surfaces to visually align with terminal color coding.

Proposed Behavior

  • tui.prompt_glyph controls the runtime prompt marker
  • tui.prompt_background controls the prompt surface background
  • defaults preserve current behavior when unset

Scope Implemented in My Fork

I already prototyped this in my fork and verified:

  • config model and schema support
  • runtime prompt glyph replacement in the TUI
  • prompt background wired through shared styling
  • matching behavior in mirrored tui_app_server paths
  • tests passing after snapshot updates

Validation Performed

  • cargo check -p codex-tui -p codex-tui-app-server -p codex-core
  • cargo test -p codex-tui

Prototype Reference

  • Branch: ggb667/codex:feat/tui-configurable-prompt
  • Commit: a143db648a48441b38a77d531823d12c44fb219c

Request

If this aligns with the product direction, I would welcome feedback. If useful, I can also provide implementation notes, analysis, or a high-level patch outline from the working fork.

Example Use Case

codex-tui -c tui.prompt_glyph="🎈" -c tui.prompt_background="#FFEEEE"

🎈✶🍎🦋💎⚡🐲 - any unicode symbol or glyph.  Right next to data entry makes wrong panel very hard to do by mistake.

Proposed config

[tui]
prompt_glyph = "🎈"
prompt_background = "#FFEEEE"

Activity

  1. added
    enhancement
    CLI
    TUI
    on Mar 20, 2026
  2. removed
    CLI
    on Mar 20, 2026
  3. github-actions commented on Mar 20, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. ggb667 commented on Mar 20, 2026

    @ggb667
    Author

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

    Powered by Codex Action

    Similiar proposals, but this is a proposan and a tested working implementation. Its simple, parameterizes the correct things and works to visually identify contextes at a glance. Very useful in agenic systems work. I am regularly managing a half dozen or more windows and without distinguishing one can become tired and submit the wrong request to the wrong agent with potentially disasterous results.

  5. etraut-openai commented on May 2, 2026

    @etraut-openai
    Contributor

    This feature request hasn't received enough upvotes, so I'm closing it.

  6. Tsury commented on Oct 14, 2026

    @Tsury

    A focused use case for this request: keep the normal composer prompt fixed independently of reasoning effort.

    In Codex CLI 0.163.0-alpha.2, changing High → Ultra changes › → », even with reasoning-effort animations disabled (tui.effects.effort = false). This is intentional tier-based rendering, rather than random behavior.

    Please support an optional fixed normal composer prompt, for example › at every reasoning level. Keep the current effort-dependent behavior as the default. Preserve reasoning information in the footer, independent animation controls, and the distinct ! Bash-mode indication. This is a visual preference; it should not require reducing reasoning effort or a general theming API.

    Source evidence: glyph mapping in the observed revision. The same mapping remains in current upstream at 97771b1; the caller stores the effort tier before gating animation. That revision's TUI schema has animation controls but no fixed-prompt setting.

  7. etraut-openai commented on Oct 14, 2026

    @etraut-openai
    Contributor

    @Tsury, this feature request has been closed because it didn't receive enough support. You're welcome to open a new feature request. Sometimes the description or title prevents a feature request from resonating with the community.

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

    TUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions