From 3d9075530f398e2a57352b2d245c4e7464cc720d Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Thu, 29 Jan 2026 23:49:40 -0800 Subject: [PATCH] Style request_user_input answers in cyan --- codex-rs/tui/src/history_cell.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/codex-rs/tui/src/history_cell.rs b/codex-rs/tui/src/history_cell.rs index 75a78b0a08..34595ef1ff 100644 --- a/codex-rs/tui/src/history_cell.rs +++ b/codex-rs/tui/src/history_cell.rs @@ -1809,7 +1809,7 @@ impl HistoryCell for RequestUserInputResultCell { Some(answer) => answer.answers.is_empty(), None => true, }; - let mut question_text = format!("{}: {}", question.header, question.question); + let mut question_text = question.question.clone(); if answer_missing { question_text.push_str(" (unanswered)"); } @@ -1818,7 +1818,7 @@ impl HistoryCell for RequestUserInputResultCell { width, " • ".into(), " ".into(), - Style::default().add_modifier(Modifier::DIM), + Style::default(), )); let Some(answer) = answer.filter(|answer| !answer.answers.is_empty()) else { @@ -1832,7 +1832,7 @@ impl HistoryCell for RequestUserInputResultCell { width, " answer: ".dim(), " ".dim(), - Style::default(), + Style::default().fg(Color::Cyan), )); } if let Some(note) = note { @@ -1840,10 +1840,14 @@ impl HistoryCell for RequestUserInputResultCell { ( " note: ".dim(), " ".dim(), - Style::default().add_modifier(Modifier::DIM), + Style::default().fg(Color::Cyan), ) } else { - (" answer: ".dim(), " ".dim(), Style::default()) + ( + " answer: ".dim(), + " ".dim(), + Style::default().fg(Color::Cyan), + ) }; lines.extend(wrap_with_prefix(¬e, width, label, continuation, style)); }