Skip to content

[BUG][Desktop] Code Block Rendering Issues Accessibility #49535

Closed as not planned

Description

@m21-cerutti

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

  1. Open OpenCode Desktop
  2. Display a code block with long lines (exceeding viewport width)
  3. 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

Image Image

Operating System

Windows 11

Terminal

Desktop

Activity

  1. changed the title [-][BUG][Desktop] Code Block Rendering Issues Acessibility[/-] [+][BUG][Desktop] Code Block Rendering Issues Accessibility[/+] on Sep 17, 2026
  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions