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

Open
opened 2026-02-16 18:12:33 -05:00 by yindo · 2 comments
Owner

Originally created by @vee1e on GitHub (Feb 16, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @vee1e on GitHub (Feb 16, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 <img width="1333" height="96" alt="Image" src="https://github.com/user-attachments/assets/9d510c9a-e641-48e0-aa80-5cda79b949a0" /> Step 3 reproduced in Neovim. ### Operating System MacOS Tahoe ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 18:12:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 16, 2026):

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.

@github-actions[bot] commented on GitHub (Feb 16, 2026): 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.
Author
Owner

@vee1e commented on GitHub (Feb 16, 2026):

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.

@vee1e commented on GitHub (Feb 16, 2026): > 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9483