Skip to content

BUG: command+shift+V does not paste from the global clipboard, but only from the local terminal clipboard in same tab/session #8975

@tgrushka

Description

@tgrushka

Description

commad+shift+V to paste unbracked.

Instead of pasting from the global clipboard, pastes the last string copied from that terminal session only, or nothing.

This issue does not affect command+V bracketed paste, so somehow command+V uses the global clipboard, and command+shift+V uses a "local" (???) clipboard?

Also, there is no way to "unbracket" the pasted text once pasted!!!

I am trying to create a prompt and then fill in file links inside opencode but this cannot currently be achieved because opencode insists on bracketing anything longer than a few words, even a single line.

Plugins

none

OpenCode version

dev branch

Steps to reproduce

  1. Copy text to the global clipboard (usually command+C) from any text editor.
  2. Run opencode in new terminal session.
  3. command+shift+V
  4. Nothing is pasted!
  5. Exit opencode.
  6. Copy some text, anything, from the same terminal window/tab/session.
  7. Run opencode in the same terminal window/tab/session again.
  8. command+shift+V
  9. Voila! Text you just copied from the terminal is pasted.
  10. Go back to your other text editor and copy text again (control-C).
  11. Go back to opencode.
  12. command+shift+V
  13. Text from your other editor is NOT pasted.
  14. Text from prior attempt in step 8 is pasted.

Screenshot and/or share link

Maybe related to #3397?

Operating System

Darwin 25.2.0 arm64 arm

Terminal

iTerm2 but I also tried it in Terminal.app and got same results

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions