UI Improvement: Better visual distinction between User Input and AI Output
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:
- Color Differentiation: Use a distinct color for the User Input (or the AI Output).
- Separators: Add a horizontal line or divider between interactions.
- 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
The background is normally there, but it's missing for me in tmux e.g.
[]()
This should definitely be improved.
https://github.com/openai/codex/issues/10812
This is a real problem - it's quite difficult to use compared to alternative agent harnesses. Please fix this 🙏
guys, please improve this: add an option to change background color on user inputs. Simple and easy.
+1
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.
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)
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 Which version was this implemented in? Windows 0.172.0 still shows no tinted background.
@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
@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?