mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Make transcript list spacing uniform after streaming (#46899)
## Why Adding blank lines only after multiline items gives lists uneven spacing. Completed lists in redrawable transcript views can use consistent spacing based on their rendered width. ## What changed - Keep assistant and plan lists compact while streaming in the fullscreen transcript, without holding back completed list rows. - On completion or interruption, separate all sibling items if any item spans multiple rows; keep single-line lists compact and recompute spacing on resize. - Preserve the reader's displayed content when consolidating streamed cells, and include spacing policy in the Markdown render cache key. - Retain existing list spacing for native terminal scrollback. ## Testing Add regression and snapshot coverage for streaming completion and interruption, width-dependent reflow, reader position, nested and quoted lists, item paragraphs, and preservation of links and source metadata. GitOrigin-RevId: b2230aaf76ae798ebb6bf15563f8b8dcb6f3d19d
This commit is contained in:
@@ -314,5 +314,8 @@ pub(super) use helpers::*;
|
||||
#[path = "tests/questions_tests.rs"]
|
||||
mod questions_tests;
|
||||
|
||||
#[path = "tests/list_spacing_tests.rs"]
|
||||
mod list_spacing_tests;
|
||||
|
||||
#[path = "tests/question_notifications_tests.rs"]
|
||||
mod question_notifications_tests;
|
||||
|
||||
Reference in New Issue
Block a user