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
Code blocks with long lines are clipped at viewport edge instead of wrapping. Text is cut off mid-word, making content unreadable beyond the visible area. Can scroll with shift, can scroll also by selecting end, or copy, but not really accessible.
Should add an option "Wrap text block" or make it automatically (with maybe line number display if automatic).
Plugins
No response
OpenCode version
Opencode Desktop 1.18.31
Steps to reproduce
Open OpenCode Desktop
Display a code block with long lines (exceeding viewport width)
Observe rendering behavior
Example
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Expected Behavior
Have a setting to automatically wrap the text code block or
Wrap automatically long lines in code blocks with :
All content visible and readable
No text clipping or truncation
And if not with option checked, have ellipsisis like "..." or better scroll bar display
Actual Behavior
Long lines are clipped at viewport edge
Text is cut off mid-word
Have horizontal scrolling, but without contrast and not really accessible friendly
Activity
[-][BUG][Desktop] Code Block Rendering Issues Acessibility[/-][+][BUG][Desktop] Code Block Rendering Issues Accessibility[/+]thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊