mirror of
https://github.com/openai/codex.git
synced 2026-02-01 22:47:52 +00:00
Style request_user_input answers in cyan
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user