Skip to content

Copy to clipboard does not copy previously pasted lines properly. #13878

Closed

Description

@vee1e

Description

When attempting to copy text that has multiple lines already pasted, the text copies the literal (Pasted ~X lines) text instead of what the lines actually signifies.

Plugins

None

OpenCode version

1.2.0

Steps to reproduce

  1. Paste a multiline text in the input box
  2. Click and drag to copy text
  3. Paste the copied text in a separate text editor

Screenshot and/or share link

Image

Step 3 reproduced in Neovim.

Operating System

MacOS Tahoe

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 16, 2026
  2. github-actions commented on Feb 16, 2026

    @github-actions
    Contributor

    This issue appears to be related to #11143, which reports that the paste preview indicator [Pasted ~N lines] is incorrectly included in the actual input content instead of being a visual-only overlay.

    The root cause in #11143 would explain why copying text that contains previously pasted lines copies the literal indicator text instead of the actual content. Once #11143 is fixed, this issue should likely be resolved as well.

    You may want to reference #11143 in your investigation and potentially track these together.

  3. vee1e commented on Feb 16, 2026

    @vee1e
    Author

    This issue appears to be related to #11143, which reports that the paste preview indicator [Pasted ~N lines] is incorrectly included in the actual input content instead of being a visual-only overlay.

    The root cause in #11143 would explain why copying text that contains previously pasted lines copies the literal indicator text instead of the actual content. Once #11143 is fixed, this issue should likely be resolved as well.

    You may want to reference #11143 in your investigation and potentially track these together.

    No they're not the same issue.

  4. github-actions commented on Apr 18, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions