You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI markdown renderer collapses loose list spacing after code blocks #19702
What terminal emulator and version are you using (if applicable)?
Ghostty
What issue are you seeing?
Markdown list items that contain block content, especially fenced code blocks, can render without a visual blank separator before the next list item.
The model output includes the blank line in the stored session JSONL, so this appears to be a TUI markdown rendering issue rather than the model omitting the newline.
Given source markdown like:
1. First:
```rustfnfoo() {}
```2. Second:
Actual TUI rendering is visually closer to:
1. First:
fn foo() {}
2. Second:
Expected TUI rendering:
1. First:
fn foo() {}
2. Second:
What steps can reproduce the bug?
Render a markdown response in the Codex TUI with an ordered list where one item contains a fenced code block and the next item follows after a blank line:
1. First:
```rustfnfoo() {}
```2. Second:
The source markdown has a blank line between the first item content and the next marker, but the rendered transcript can omit the visual separator.
What is the expected behavior?
The TUI should preserve a readable blank separator before the next list marker when the previous list item contains block content such as a fenced code block.
Simple or tight lists should remain compact:
1. First
2. Second
can still render as:
1. First
2. Second
The goal is not to add extra vertical space to every list item, only to avoid visually attaching the next marker to block-heavy list content.
The draft change tracks when a list item contains block content and preserves a separator before the next marker only in that case. It includes regression coverage for both paths: code-block list items keep the separator, and simple list items stay compact.
Activity
Address nested markdown list spacing
Preserve TUI markdown list spacing after code blocks (#19706)
etraut-openai commentedon Apr 27, 2026
Thanks for the bug report @joshka! This will be addressed in the next release.
joshka commentedon Apr 28, 2026
Thanks Eric.
Preserve TUI markdown list spacing after code blocks (openai#19706)
Preserve TUI markdown list spacing after code blocks (openai#19706)