opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Pasting text broken in 1.0.10 version

Open sfpmld opened this issue 2 months ago • 13 comments

Description

Description Hi opencode contributors. i was testing one custom /command with argument. But pasting is broken. Nothing shows when pasting and it is not a simple display issue :/

OpenCode version 1.0.10

Steps to reproduce Simply try to paste any yanked text to the chat

OpenCode version

1.0.10

Steps to reproduce

Try to paste text

Screenshot and/or share link

No response

Operating System

Linux Mint 22.1

Terminal

Alacritty 0.16.0-dev

sfpmld avatar Nov 02 '25 01:11 sfpmld

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

  • #3532: Describes pasted text showing as "[pasted #2 1+ lines]" instead of proper inline pasting - while not identical to your "nothing shows when pasting" issue, both are clipboard/pasting-related bugs that may have the same underlying cause

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

github-actions[bot] avatar Nov 02 '25 01:11 github-actions[bot]

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

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

Don't think so, just nothing is pasted 🙁

sfpmld avatar Nov 02 '25 02:11 sfpmld

i'm not able to reproduce this at all - you're using the same keybinding you'd use to paste stuff into your shell?

thdxr avatar Nov 02 '25 21:11 thdxr

Yes I do. Just Ctrl+c and Ctrl+v in the chat. Nothing fancy. I noticed that, I have no such problem when downgraded to the last 0.x version before 1.x latest one

sfpmld avatar Nov 02 '25 22:11 sfpmld

Found out that simple Ctrl+c & Ctrl+v was working as it is until version 0.15.31. Just approach similar goal with Shift + Insert in version 1.0.13

sfpmld avatar Nov 03 '25 00:11 sfpmld

But this 1.0.13 version don't always make me able to launch any command. For the moment I keep scotched to the 0.15.31 and will observe next new version 🙏🏾

sfpmld avatar Nov 03 '25 00:11 sfpmld

does ctrl+shift+v work?

thdxr avatar Nov 04 '25 19:11 thdxr

fyi I had the same issue reported in #3908 . I am on mac os using iterm2. Happy to help debug.

zippeurfou avatar Nov 04 '25 19:11 zippeurfou

in version 0.15.31: everything is good

Image

in version 1.0.21 : can 't do anything. Strange character print without my intervention after trying a slash command

Image

sfpmld avatar Nov 04 '25 22:11 sfpmld

Gave it a try since v1.0.55 and now v.1.0.65. I can say it works now for me but with Shift + Insert to paste instead of Ctrl + V for version v0.15.31

sfpmld avatar Nov 15 '25 18:11 sfpmld