mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
Represent user message presentation with an enum (#57291)
## What changed Replace `UserHistoryCell`'s `spoken` boolean with `UserMessagePresentation`, defaulting to `Plain` and using `Spoken` for speech transcripts. Route rendering checks through `is_spoken()`, preserving the existing prompt styling and whitespace handling. GitOrigin-RevId: d0683a2b536a7d71f68fd9a089e6839d0ab0cc65
This commit is contained in:
@@ -53,7 +53,7 @@ pub(super) fn line(
|
||||
Some((
|
||||
truncate_line_with_ellipsis_if_overflow(
|
||||
Line::from(vec![
|
||||
if prompt.spoken {
|
||||
if prompt.is_spoken() {
|
||||
"› ".red().bold()
|
||||
} else {
|
||||
"› ".bold().dim()
|
||||
|
||||
Reference in New Issue
Block a user