codex - 💡(How to fix) Fix Codex App code/text previews in threads do not wrap long lines, making them unreadable without horizontal scrolling [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19985Fetched 2026-04-29 06:24:09
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Root Cause

This is especially painful for thread previews or comments containing long markdown/code lines, because the preview is otherwise tall enough to show the content but the right side is clipped off-screen.

RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.422.62136

What subscription do you have?

Pro 200

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

In the Codex App, code/text previews inside threads do not wrap long lines. Long markdown/code/text content extends horizontally out of the visible preview area, so the text cannot be read unless I horizontally scroll.

This is especially painful for thread previews or comments containing long markdown/code lines, because the preview is otherwise tall enough to show the content but the right side is clipped off-screen.

In the attached screenshot, a markdown preview shows a long sentence cut off at the right edge:

Model selection and reasoning/intelligence selection are still broken in the app on this vers...

The content should be readable in the preview without requiring horizontal scrolling for normal prose-like text.

What steps can reproduce the bug?

  1. Open Codex App 26.422.62136.
  2. Open a thread containing a code/text/markdown preview with long lines.
  3. View the preview in the thread.
  4. Observe that long lines do not wrap inside the preview container.
  5. Try to read the full line without horizontal scrolling.

Observed result:

  • Long lines continue horizontally past the visible area.
  • The right side of the content is clipped unless the preview is horizontally scrolled.
  • This makes long text hard to read in thread previews.

What is the expected behavior?

Code/text previews should support readable wrapping for long lines, or provide an option to wrap long lines in previews. Long prose-like markdown/text should not become unreadable just because one line exceeds the preview width.

Additional information

I searched for similar issues before filing.

Related issues:

  • #11153 requested optional code block wrapping in Codex App, but it is closed.
  • #16669 requests adjustable chat content width, which is related but different. This report is specifically about long lines not wrapping in code/text previews inside threads.
<img width="1487" height="512" alt="Image" src="https://github.com/user-attachments/assets/893ba703-05c5-4332-9120-3d56bc33f355" />

extent analysis

TL;DR

The issue can be mitigated by adjusting the CSS styling of the code/text preview container to enable line wrapping.

Guidance

  • Investigate the CSS styles applied to the code/text preview container to identify the property preventing line wrapping.
  • Check if the overflow-wrap or word-wrap properties are set to normal and consider changing them to break-word to enable line wrapping.
  • Review related issues #11153 and #16669 to see if any proposed solutions or workarounds can be applied to this specific problem.
  • Consider adding a feature request to enable optional code block wrapping in the Codex App, as suggested in #11153.

Example

.code-preview-container {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

Note: This example assumes that the code preview container has a class named code-preview-container and that adjusting the overflow-wrap and word-wrap properties will enable line wrapping.

Notes

The provided solution is a workaround and may not be the final fix. The root cause of the issue may be related to the CSS styling or the rendering of the code/text preview container.

Recommendation

Apply workaround: Adjust the CSS styling of the code/text preview container to enable line wrapping, as this is a viable temporary solution until a more permanent fix is implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex App code/text previews in threads do not wrap long lines, making them unreadable without horizontal scrolling [1 participants]