anomalyco / anomalyco/opencode
[BUG][Desktop] Code Block Rendering Issues Accessibility
Open
@Brendonovich is already working on this.
Since Sep 17, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
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
- No line number
Screenshot and/or share link
Operating System
Windows 11
Terminal
Desktop
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.