diff --git a/codex-rs/tui/src/conversation_history_widget.rs b/codex-rs/tui/src/conversation_history_widget.rs index 3246fe7263..64fa4f6dd3 100644 --- a/codex-rs/tui/src/conversation_history_widget.rs +++ b/codex-rs/tui/src/conversation_history_widget.rs @@ -438,6 +438,8 @@ impl WidgetRef for ConversationHistoryWidget { .wrap(wrap_cfg()) .scroll((offset_into_first as u16, 0)); + // Clear the widget area to avoid visual artifacts from previous frames. + Clear.render(area, buf); paragraph.render(area, buf); // Draw scrollbar if necessary.