From 5f10548772e351d8bad5daafe7ef15cdd00bcd96 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Thu, 15 Jan 2026 10:58:12 -0800 Subject: [PATCH] Revert recent styling change for input prompt placeholder text (#9307) A recent change in commit ccba737d26 modified the styling of the placeholder text (e.g. "Implement {feature}") in the input box of the CLI, changing it from non-italic to italic. I think this was likely unintentional. It results in a bad display appearance on some terminal emulators, and several users have complained about it. This change switches back to non-italic styling, restoring the older behavior. It addresses #9262 --- codex-rs/tui/src/bottom_pane/chat_composer.rs | 2 +- codex-rs/tui2/src/bottom_pane/chat_composer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs index facfab622..343403704 100644 --- a/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -2230,7 +2230,7 @@ impl Renderable for ChatComposer { .unwrap_or("Input disabled.") .to_string() }; - let placeholder = Span::from(text).dim().italic(); + let placeholder = Span::from(text).dim(); Line::from(vec![placeholder]).render_ref(textarea_rect.inner(Margin::new(0, 0)), buf); } } diff --git a/codex-rs/tui2/src/bottom_pane/chat_composer.rs b/codex-rs/tui2/src/bottom_pane/chat_composer.rs index 7cc2dbabf..c9058e015 100644 --- a/codex-rs/tui2/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui2/src/bottom_pane/chat_composer.rs @@ -2199,7 +2199,7 @@ impl Renderable for ChatComposer { .unwrap_or("Input disabled.") .to_string() }; - let placeholder = Span::from(text).dim().italic(); + let placeholder = Span::from(text).dim(); Line::from(vec![placeholder]).render_ref(textarea_rect.inner(Margin::new(0, 0)), buf); } }