fix(tui): preserve characters when wrapping markdown lists#2380
fix(tui): preserve characters when wrapping markdown lists#2380bdragan wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7215fc6a93
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d49b1f2916
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e2582f8257
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Resolve #2379
Description
Fix markdown list wrapping in the shell TUI.
Before this change, wrapped list items could render incorrectly in two ways:
Example before:

Notice: thro(ug)h, Pro(to)col, compac(ti)on
The root cause was that list item content was effectively wrapped without fully accounting for the bullet/number prefix width. This change makes list-item wrapping prefix-aware for the common single-paragraph case, preserves inline
Textstyling while splitting wrapped lines, and keeps the existing fallback path for more complex list items.Now:

It also adds regression coverage for:
Checklist
make gen-changelogto update the changelog.make gen-docsto update the user documentation.