anomalyco / anomalyco/opencode

“Copied to clipboard” doesn't work

Open
#41,470 23 comments 1 reaction 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 10, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

When using OpenCode inside VSCode Server (Docker environment), copying text from an OpenCode session shows the message Copied to clipboard, but the text is not actually copied to the system clipboard and cannot be pasted elsewhere.

Plugins

None

OpenCode version

1.18.14

Steps to reproduce
  1. Start VSCode Server inside a Docker container.
  2. Run OpenCode 1.18.14 in VSCode Server.
  3. Select some text in an OpenCode session and copy it.
  4. OpenCode displays: [Copied to clipboard]
  5. Try to paste the copied text into another application, terminal, or editor.
    Expected Behavior:
    After copying, the selected text should be available in the system clipboard and should be possible to paste into other applications or terminals.

Actual Behavior:
Although OpenCode displays: [Copied to clipboard], the text is not actually copied to the clipboard, and nothing can be pasted elsewhere.

Screenshot and/or share link

No response

Operating System

Linux version 5.15.0-164-generic (buildd@lcy02-amd64-114) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04.2) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025

Terminal

bash

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.