Skip to content

Highlight-copy code doesn't preserve empty lines #25623

Closed

Description

@benkoppe

Description

Any time opencode emits code blocks, highlight-copying doesn't preserve empty lines.

Plugins

opencode-claude-auth@latest

OpenCode version

1.14.33

Steps to reproduce

  1. Make an agent emit some code
  2. Highlight the code to copy it
  3. Paste it anywhere

Screenshot and/or share link

Image Generated on the left, pasted on the right.

Operating System

macOS 15.7.5

Terminal

Ghostty 1.2.3

Activity

  1. benkoppe commented on May 3, 2026

    @benkoppe
    Author

    This seems to be an ongoing issue: see #16521 and #10098

  2. benkoppe commented on Jun 2, 2026

    @benkoppe
    Author
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