codex icon indicating copy to clipboard operation
codex copied to clipboard

UI Improvement: Better visual distinction between User Input and AI Output

Open ValadaresX opened this issue 10 months ago • 13 comments

What feature would you like to see?

Current Behavior The visual distinction between user input and AI output is too subtle.

  • User: Indicated by a small, dim grey > on the left.
  • AI: Indicated by a bullet point •.
  • Issue: Both use the same text color and font weight.

The Problem When scrolling through the terminal history, it is difficult to quickly distinguish user prompts from AI responses. The current markers are low-contrast and hard to spot during a quick scan, requiring the user to focus intensely on the left margin to find context switches.

Visual Representation (Current State) Everything looks uniform, like this:

> user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user
• ai response start, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response,...
> user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user, user
• ai response start, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response, ai response,...

(In the actual CLI, the icons > and • are very small and the text color is identical, making the separation invisible when scrolling)

Suggested Improvements Please implement a better visual hierarchy. Possible solutions include:

  1. Color Differentiation: Use a distinct color for the User Input (or the AI Output).
  2. Separators: Add a horizontal line or divider between interactions.
  3. Backgrounds: Use a slight background tint for one of the actors.

Goal To allow users to identify "who is speaking" instantly while scrolling, without relying on small pixel markers.

Additional information

No response

ValadaresX avatar Jan 06 '26 12:01 ValadaresX

The background is normally there, but it's missing for me in tmux e.g.

VadimPushtaev avatar Jan 09 '26 15:01 VadimPushtaev

[]()

kornreaksmei-dev avatar Jan 14 '26 06:01 kornreaksmei-dev

This should definitely be improved.

https://github.com/openai/codex/issues/10812

MNeMoNiCuZ avatar Feb 05 '26 22:02 MNeMoNiCuZ

This is a real problem - it's quite difficult to use compared to alternative agent harnesses. Please fix this 🙏

anand-shankar-1 avatar May 19 '26 05:05 anand-shankar-1

guys, please improve this: add an option to change background color on user inputs. Simple and easy.

alexbi29 avatar Jun 22 '26 05:06 alexbi29

aleksandar-radev avatar Aug 23 '26 18:08 aleksandar-radev

+1

andrewzbytek avatar Sep 16 '26 00:09 andrewzbytek

Please consider a built-in, optional horizontal divider immediately above the Codex CLI input line, similar to the clear input boundary in Claude Code.

This has an accessibility use case beyond appearance: for some users, a persistent visual boundary can make it easier to distinguish "my work" (the prompt being composed) from the work being performed by Codex (responses, tool activity, and progress). Small prompt markers and subtle background differences can be difficult to track during an active session.

The specific request is a horizontal line spanning the input area's width, staying directly above the prompt as the terminal resizes or the input becomes multiline:

Codex responses and tool activity...
────────────────────────────────────────────
› My next prompt...

Please make this available in the standard CLI as a setting, so users can enable it without building or maintaining a custom version.

CCHerbst avatar Nov 03 '26 12:11 CCHerbst

100% the UX in Claude CLI, and even OpenCode and pi and most agent tui I tested... is currently superior in this department (distinguishing user and agent turns)

fricpa avatar Nov 21 '26 16:11 fricpa

Submitted prompts now have a tinted background in the transcript, so you can distinguish them from assistant replies while scrolling. The tint adapts to the terminal background.

Closing as implemented. Configurable prompt colors and a high-contrast option are tracked in #62007.

etraut-openai avatar Nov 27 '26 01:11 etraut-openai

@etraut-openai Which version was this implemented in? Windows 0.172.0 still shows no tinted background.

andrewzbytek avatar Nov 29 '26 09:11 andrewzbytek

@andrewzbytek you need to set env var COLORTERM=truecolor environment variable... also took me a while to figure out... without that it looked correct on Linux/WSL but wrong on Windows with no background color behind the user prompts

Masterxilo avatar Nov 29 '26 20:11 Masterxilo

@etraut-openai On Windows 11, Codex CLI 0.172.0 showed no background tint behind my submitted prompts. I saw this in both PowerShell and Command Prompt (cmd.exe). I set COLORTERM=truecolor for my Windows account and started a new Codex session. The tint appeared.

I only found the setting through Masterxilo's comment. For anyone else who hits this, run setx COLORTERM truecolor in either shell, then reopen the terminal and start Codex.

Could you revisit #8852 so Codex shows the tint by default on Windows terminals that support true color?

andrewzbytek avatar Nov 29 '26 21:11 andrewzbytek