You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Option to disable diff background highlight #12749
Reacted by Ignat Remizov, Eliot the Cougar, acgxv, Josh Pazmino, Cal Heldenbrand, baron, Francisco Giordano, Pengfei Xie, Alexander Filatov, Nicolas Favre-Felix and 1 more
I can confirm that I cannot read anything anymore.
The green is too green and the red is too red. Every time I open this terminal, my retinas file a formal complaint. 😅
I use mintty 3.8.1.
Fortunately, mintty can actually change colors (they call it a "theme"). I switched the theme from “mintty” to “html” and finally: the text becomes readable again.
Edit: now ordered lists and code blocks become unreadable 😆 but sadly the "html" theme is the only theme among the others that don't let my eyes bleed.
I think I need to switch back to 0.104.0 for the current time.
+1 from my side. My eyes, they burn. The current add/remove diff line backgrounds are too strong for all themes due to being hardcoded in codex-rs/tui/src/diff_render.rs.
Suggested implementation path/spec:
Add a user-facing diff background mode under [tui]:
Thread a DiffBackgroundConfig into style_line_bg_for/add_line_bg/del_line_bg
keep existing color-level quantization (truecolor/256/16) after resolving target RGB
Nice-to-have follow-up:
optional separate control for gutter background (or derive from line bg)
include a preview row in /theme so users can verify theme/custom/off quickly.
This would cover both camps: users who want backgrounds disabled and users who want subtle, theme-matched diff backgrounds instead of hardcoded bright red/green.
Reacted by acgxv, M_SERVER, Ignat Remizov, Josh Pazmino, kalineh, sembalby, Francisco Giordano and Alexander Filatov
+1 colour blind here and makes it awful to use, please add an option to turn it off.
just to follow up the coloured syntax text in 0.104.0 and earlier was perfect and no problem for me and perhaps other colour challenged folks, it's the coloured backgrounds that cause a prob and make the underlying text unreadable.
Activity
[-]Disable diff background highlight[/-][+]Option to disable diff background highlight[/+]acgxv commentedon Feb 25, 2026
Screen.Recording.2026-02-25.at.15.36.14.mov
Every theme is unreadable
etraut-openai commentedon Feb 25, 2026
Which terminal emulator are you using? Which platform?
acgxv commentedon Feb 25, 2026
Ghostty, I also tested in Zed. All my tokyo-night* terminal themes are not happy with this.
acgxv commentedon Feb 25, 2026
BTW, I use
TERM=dumbdue to #2020. Even if this is fixed I will not use it as I dislike the black input box.But anyway, I would like to suggest that an option to disable this feature be available.
teneko commentedon Feb 25, 2026
I can confirm that I cannot read anything anymore.
The green is too green and the red is too red. Every time I open this terminal, my retinas file a formal complaint. 😅
I use mintty 3.8.1.
Fortunately, mintty can actually change colors (they call it a "theme"). I switched the theme from “mintty” to “html” and finally: the text becomes readable again.
Edit: now ordered lists and code blocks become unreadable 😆 but sadly the "html" theme is the only theme among the others that don't let my eyes bleed.
I think I need to switch back to 0.104.0 for the current time.
ignatremizov commentedon Feb 26, 2026
+1 from my side. My eyes, they burn. The current add/remove diff line backgrounds are too strong for all themes due to being hardcoded in
codex-rs/tui/src/diff_render.rs.Suggested implementation path/spec:
Add a user-facing diff background mode under
[tui]:diff_background = "auto" | "off" | "theme" | "custom"auto(preserve current behavior)Behavior by mode:
auto: current hardcoded palette (no behavior change)off: no add/remove line background, keep only fg/gutter/sign stylingtheme: derive add/remove backgrounds from theme scopes if availablecustom: use explicit user-provided colors.tmThemescope mapping forthememode:markup.inserted, fallbackdiff.insertedmarkup.deleted, fallbackdiff.deletedautofor missing scope/backgroundcustommode config keys (optional, with fallback toauto):diff_add_bg,diff_del_bg#RRGGBB(and optionally named/indexed later)Renderer integration:
DiffBackgroundConfigintostyle_line_bg_for/add_line_bg/del_line_bgNice-to-have follow-up:
/themeso users can verifytheme/custom/offquickly.This would cover both camps: users who want backgrounds disabled and users who want subtle, theme-matched diff backgrounds instead of hardcoded bright red/green.
wenGravitas commentedon Feb 26, 2026
+1 colour blind here and makes it awful to use, please add an option to turn it off.
ignatremizov commentedon Feb 26, 2026
I implemented in ignatremizov#1 but cannot open a PR here
fcoury commentedon Feb 26, 2026
We are working on a fix for this. Meanwhile, can you try running
set TERM=xterm-256first and then running codex and report back.calh commentedon Feb 26, 2026
I wanted to post that this change bugs me too:
I chose a theme which is not as terrible as others, but it's still hard to read. I'd prefer the previous 0.104 version with no background.
I'm running KDE Konsole, with terminal settings:
ignatremizov commentedon Feb 26, 2026
@fcoury please look at ignatremizov#1 (it has screenshots)
teneko commentedon Feb 27, 2026
Nope, nothing changed, at least in mintty, @fcoury.
wenGravitas commentedon Feb 27, 2026
just to follow up the coloured syntax text in 0.104.0 and earlier was perfect and no problem for me and perhaps other colour challenged folks, it's the coloured backgrounds that cause a prob and make the underlying text unreadable.
ignatremizov commentedon Feb 27, 2026
3b5996f is intended to fix this, but there is still no user config override for the background tint from theme files or config.toml [tui] directly
Loongphy commentedon Feb 28, 2026
Ditching the diff theme is a solid move. I'm not sure why we’re trying to bake a full-blown code editor feature in TUI.
acgxv commentedon Feb 28, 2026
Nice. #13037
Works good now in latest pre-release.