You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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 🙏🏾
I've come across same issue
When the clipboard has some kind of image path, pasting won't work.
// didn't work
- xcrun simctl io booted screenshot /tmp/sim.png && open -a Preview /tmp/sim.png
// worked just fine
+ xcrun simctl io booted screenshot /tmp/sim.pdf && open -a Preview /tmp/sim.pdf
possible fix: upgrade your Bun version to >= 1.2.21 (do bun --version)
i could repro this on latest master (586e7347bd48cc58b9e1cdc9dd63a71d5e9adb08) on darwin-arm64 with kitty. upgrading bun fixed this issue for me. see below for details.
i ran into what seems like the same issue: pasting the normal way i paste into my terminal (super+v) was broken.
after some Very Professional Debugging (aka print statements lol), i found the issue to actually be in @opentui, not in opencode. Specifically, it's in this class:
the root cause was in the Bun.stripANSI call. it was throwing an Bun.stripANSI is not a function exception, which was caught by the catch clause. i had to add a throw error to force an exception to be visibly printed (adding --print-logs --log-level DEBUG to opencode startup didn't help).
it turns out Bun.stripANSI was added in v1.2.21, but my local version of bun was v1.2.18. note that i start opencode with bun run --cwd /path/to/opencode/packages/opencode src/index.ts instead of the usual npx/npm route because i have a personal fork of opencode with a few minor cosmetic changes.
i did brew upgrade bun to upgrade my local Bun to v1.3.1 and the issue went away. i can now paste fine.
Activity
github-actions commentedon Nov 2, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
sfpmld commentedon Nov 2, 2025
Don't think so, just nothing is pasted 🙁
thdxr commentedon Nov 2, 2025
i'm not able to reproduce this at all - you're using the same keybinding you'd use to paste stuff into your shell?
sfpmld commentedon Nov 2, 2025
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 commentedon Nov 3, 2025
Found out that simple
Ctrl+c&Ctrl+vwas working as it is until version0.15.31.Just approach similar goal with
Shift + Insertin version1.0.13sfpmld commentedon Nov 3, 2025
But this
1.0.13version don't always make me able to launch any command. For the moment I keep scotched to the0.15.31and will observe next new version 🙏🏾thdxr commentedon Nov 4, 2025
does ctrl+shift+v work?
zippeurfou commentedon Nov 4, 2025
fyi I had the same issue reported in #3908 . I am on mac os using iterm2.
Happy to help debug.
sfpmld commentedon Nov 4, 2025
in version
0.15.31: everything is goodin version
1.0.21: can 't do anything. Strange character print without my intervention after trying a slash commandsfpmld commentedon Nov 15, 2025
Gave it a try since
v1.0.55and nowv.1.0.65. I can say it works now for me but withShift + Insertto paste instead ofCtrl + Vfor versionv0.15.31zl6759 commentedon Nov 21, 2025
In PuTTY, Shift + Insert to paste and Ctrl + Insert to copy work for version 1.0.85
ruibeard commentedon Dec 14, 2025
I've come across same issue
When the clipboard has some kind of image path, pasting won't work.
Commands are just an example
adtac commentedon Jan 4, 2026
possible fix: upgrade your Bun version to >= 1.2.21 (do
bun --version)i could repro this on latest master (
586e7347bd48cc58b9e1cdc9dd63a71d5e9adb08) ondarwin-arm64withkitty. upgrading bun fixed this issue for me. see below for details.i ran into what seems like the same issue: pasting the normal way i paste into my terminal (super+v) was broken.
after some Very Professional Debugging (aka print statements lol), i found the issue to actually be in
@opentui, not in opencode. Specifically, it's in this class:the root cause was in the
Bun.stripANSIcall. it was throwing anBun.stripANSI is not a functionexception, which was caught by thecatchclause. i had to add athrow errorto force an exception to be visibly printed (adding--print-logs --log-level DEBUGto opencode startup didn't help).it turns out
Bun.stripANSIwas added in v1.2.21, but my local version of bun was v1.2.18. note that i start opencode withbun run --cwd /path/to/opencode/packages/opencode src/index.tsinstead of the usual npx/npm route because i have a personal fork of opencode with a few minor cosmetic changes.i did
brew upgrade bunto upgrade my local Bun to v1.3.1 and the issue went away. i can now paste fine.github-actions commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.