Commands receive [pasted lines] instead of real arguments #1540

Closed
opened 2026-02-16 17:31:26 -05:00 by yindo · 4 comments
Owner

Originally created by @art-shen on GitHub (Aug 30, 2025).

Originally assigned to: @rekram1-node on GitHub.

Passing any semi-big info to commands via pasting is broken.

E.g., I am trying to pass some information to the command launching. If it wasn’t pasted as plain text but instead replaced with the pasted lines ([pasted #1 1+ lines]), then the command would not get the content I pasted and would only receive this placeholder instead.

Image

Image
Originally created by @art-shen on GitHub (Aug 30, 2025). Originally assigned to: @rekram1-node on GitHub. Passing any semi-big info to commands via pasting is broken. E.g., I am trying to pass some information to the command launching. If it wasn’t pasted as plain text but instead replaced with the pasted lines (`[pasted #1 1+ lines]`), then the command would not get the content I pasted and would only receive this placeholder instead. <img width="336" height="68" alt="Image" src="https://github.com/user-attachments/assets/a95b3402-cc87-4fbf-a0b3-8dcf5c909cb5" /><br> <img width="277" height="60" alt="Image" src="https://github.com/user-attachments/assets/471004c7-5b20-4e06-a06d-9d0b2d5cca9a" />
yindo closed this issue 2026-02-16 17:31:26 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 30, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1265: Text pasted in previous sessions is replaced by [pasted ... lines] placeholders - describes the same behavior where pasted content is replaced with placeholders instead of real content

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 30, 2025): This issue might be a duplicate of existing issues. Please check: - #1265: Text pasted in previous sessions is replaced by [pasted ... lines] placeholders - describes the same behavior where pasted content is replaced with placeholders instead of real content Feel free to ignore if none of these address your specific case.
Author
Owner

@art-shen commented on GitHub (Aug 30, 2025):

Not a duplicate. Different cases, but with the similar problem in them.

@art-shen commented on GitHub (Aug 30, 2025): Not a duplicate. Different cases, but with the similar problem in them.
Author
Owner

@kha84 commented on GitHub (Oct 29, 2025):

My humble opinion - this post processing of clipboard, where the actual text is being replaced with some reference like [pasted #x 1+ lines] is doing more harm then good. What is the purpose of it first of all? Probably I misunderstand something?

@kha84 commented on GitHub (Oct 29, 2025): My humble opinion - this post processing of clipboard, where the actual text is being replaced with some reference like `[pasted #x 1+ lines]` is doing more harm then good. What is the purpose of it first of all? Probably I misunderstand something?
Author
Owner

@rekram1-node commented on GitHub (Oct 29, 2025):

I personally don't see any harm in it but you can disable it with the experimental config in ur opencode.json:

{
  "experimental": {
    "disable_paste_summary": true
  }
}
@rekram1-node commented on GitHub (Oct 29, 2025): I personally don't see any harm in it but you can disable it with the experimental config in ur opencode.json: ``` { "experimental": { "disable_paste_summary": true } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1540