From aea220ed5398ab4f2b3b4ddbd51a7a9ab06f47a9 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Thu, 15 Jan 2026 10:29:49 -0800 Subject: [PATCH] Reverted recent styling change for input prompt placeholder text 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. --- 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 facfab622ca0..343403704eec 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 7cc2dbabf173..c9058e01538d 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); } }