mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Animate live voice transcripts with split-flap tiles (#43656)
## What changed Render live voice transcripts with a split-flap effect, a black background, and brief speaker-colored highlights as characters settle. Preserve settled characters when text is appended and include animation ticks in the active transcript cache key so frames refresh. Respect `animations = false`, preserve Unicode graphemes and raw transcript text, and keep completed transcripts as ordinary history cells. Stop requesting animation frames once the effect settles. ## Testing Add frame snapshots and regression coverage for row styling, speaker colors, appended text, reduced motion, Unicode width, frame scheduling, and unchanged final transcript history. GitOrigin-RevId: 934f577c7279158f9161d6232634087ab32b0ea3
This commit is contained in:
committed by
copyberry
parent
4b0d9669cc
commit
4e93cf9b4e
@@ -1972,7 +1972,9 @@ impl ChatWidget {
|
||||
is_stream_continuation: cell
|
||||
.map(|cell| cell.is_stream_continuation())
|
||||
.unwrap_or(false),
|
||||
animation_tick: cell.and_then(|cell| cell.transcript_animation_tick()),
|
||||
animation_tick: cell
|
||||
.and_then(|cell| cell.transcript_animation_tick())
|
||||
.or_else(|| realtime_cell.and_then(|cell| cell.transcript_animation_tick())),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user