opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Pasting text in WezTerm on X11 Ubuntu always results in [Pasted ~X lines]

Open panta82 opened this issue 1 week ago • 4 comments

Question

I'm not sure if this is a bug or feature request, but when I paste some text in Ubuntu X11 WezTerm, I get this:

Image

As far as I can tell, there is no way I can just input normal text, that I can see and edit. Tried different key combos, and tried paste into a different program then in terminal - didn't help. This makes the TUI app pretty much unusable for me.

Is this the intended behavior or a bug?

panta82 avatar Dec 17 '25 13:12 panta82

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

  • #3081: I can't paste text with CTRL+V or right mouse click when running inside WSL (similar paste input issue)
  • #3728: Pasting text broken in 1.0.10 version (paste functionality broken in terminal)
  • #1265: Text pasted in previous sessions is replaced by [pasted ... lines] placeholders (related to pasted content display)
  • #4754: Copy and Paste behaviour under Linux (Linux-specific copy/paste issues)

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

github-actions[bot] avatar Dec 17 '25 13:12 github-actions[bot]

This is intended behavior, you can disable it tho lemme find the config

rekram1-node avatar Dec 17 '25 15:12 rekram1-node

in your opencode.json set:

{“experimental”:{“disable_paste_summary”: true}}

i typed this on phone so the quotes are probably invalid but you get the idea

rekram1-node avatar Dec 17 '25 15:12 rekram1-node

Alternatively, you can edit your prompt in your editor (leader + e or check the "Open editor" command in the commands palette)

justfortheloveof avatar Dec 17 '25 16:12 justfortheloveof

@rekram1-node , @justfortheloveof thanks! Both of these help.

"disable_paste_summary" has a bit of a bug where it doesn't resize paste box to account for larger text, but it's workable. And opening a text editor is def a workflow I should use more for ambitious prompts.

panta82 avatar Dec 18 '25 11:12 panta82

Does the Textarea resize after pasting, when moving the cursor? I'll get that fixed.

kommander avatar Dec 18 '25 11:12 kommander

No, it only resizes after editing the prompt

panta82 avatar Dec 20 '25 08:12 panta82