anomalyco / anomalyco/opencode

Shift+Insert does not paste in OpenCode CLI inside VS Code terminal

Open
#41,407 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 9, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Description

When running OpenCode CLI inside the VS Code integrated terminal, the Shift+Insert keyboard shortcut does not paste the current clipboard contents.

The same Shift+Insert shortcut works correctly when running OpenCode CLI in Windows Terminal.

Right-click paste works normally in VS Code; the issue is specifically with the Shift+Insert keyboard shortcut.

Expected behavior

Pressing Shift+Insert should paste the current clipboard contents into the OpenCode CLI input, consistent with the behavior in Windows Terminal.

Additional information

Shift+Insert works as expected when OpenCode CLI is run in Windows Terminal, but does not work when the same CLI is run inside the VS Code integrated terminal.

Right-click paste works in both environments, so this appears to be specifically related to handling the Shift+Insert keyboard shortcut in the VS Code terminal environment.

Plugins

No response

OpenCode version

1.18.15

Steps to reproduce
  1. Open VS Code.
  2. Open the integrated terminal.
  3. Start OpenCode CLI.
  4. Copy some text to the clipboard.
  5. Focus the OpenCode CLI input.
  6. Press Shift+Insert.
  7. Notice that the clipboard contents are not pasted.
Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

vscode-insiders

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.