CORE JSC

International Technology Partnership

Roo Tools

Fixing Roo Code Image and Screenshot Pasting That Silently Fails to Attach in Remote and Containerized Environments

Pasting a screenshot or image directly into the Roo Code chat input works reliably on a local machine, but inside a Remote-SSH session, a dev container, or a cloud-hosted VS Code environment, the same paste does nothing — no image appears, no error shows, and the clipboard clearly still has the image. The paste itself never reaches Roo Code, because it depends on clipboard access that a remote environment doesn't automatically provide.

Core JSC Team·November 17, 2026
Roo CodeClipboardRemote DevelopmentDev ContainersDeveloper Tools

The Problem

Pasting a screenshot directly into Roo Code's chat input — a common way to show it a UI bug, an error dialog, or a design mockup — works instantly on a local VS Code install: Ctrl+V (or Cmd+V), and the image attaches to the message right away. Doing the exact same paste inside a Remote-SSH session, a dev container, WSL, or a browser-based cloud IDE produces nothing — no image attachment appears, no error message shows, and nothing in the UI indicates the paste was even received. The clipboard still visibly contains the image when checked elsewhere; it simply never makes it into the chat input in this environment.

Why It Happens

Clipboard image data has to cross a process and often a network boundary that a local install never has to deal with

On a local install, the editor process and the operating system clipboard live on the same machine, so reading image data off the clipboard is a direct, same-machine operation. In a Remote-SSH, container, or cloud-hosted setup, the actual VS Code UI renders in a local client while the extension host — including Roo Code — runs on a separate remote machine or container; reading the client's clipboard from the remote host depends on VS Code's own remote clipboard-forwarding mechanism working correctly for that specific environment and configuration.

Browser-based environments add a stricter, permission-gated clipboard API that silently returns nothing without an explicit grant

A browser-hosted VS Code (a cloud IDE, or VS Code for the Web) accesses the clipboard through the browser's own Clipboard API, which requires an explicit permission grant and, for image data specifically, support that varies meaningfully between browsers and can depend on the page being served over HTTPS and having user-gesture context at the exact moment of the paste. A denied or never-granted permission here typically fails quietly — the paste event fires, but no image data comes back with it — rather than surfacing a visible permission-denial dialog.

Some container and remote configurations simply don't forward clipboard access at all, by design or by an incomplete setup

A minimal dev container definition, a headless remote session, or a tightly locked-down cloud environment may not have clipboard forwarding configured as part of its setup at all — this isn't always a bug to fix so much as a capability that was never wired up for that specific environment, which is different from a permission that's merely been denied and can be re-granted.

The Fix

1. Confirm basic text clipboard paste works in the same environment before troubleshooting image paste specifically

Try pasting plain text into any input field in the same remote/container session.
If even text paste fails, the issue is clipboard forwarding at the VS Code
remote connection level, not anything specific to images or to Roo Code.

Narrowing the problem to "clipboard forwarding generally" versus "image data specifically" first avoids spending time on an image-specific fix when the actual gap is that clipboard access isn't working for that remote connection at all — a much more fundamental, environment-level issue to resolve first.

2. For browser-based IDEs, explicitly grant clipboard permission for the site rather than assuming it's silently denied

Browser address bar -> site permissions / page info icon
-> Clipboard -> set to "Allow" for this site

Because a denied clipboard permission in a browser typically fails without any visible prompt the second and subsequent times, explicitly checking and setting the permission through the browser's own site settings — rather than waiting for a prompt that may never reappear — resolves the single most common cause of silent image-paste failure in a browser-hosted environment.

3. As a reliable fallback that doesn't depend on clipboard forwarding at all, save the screenshot to a file and reference it directly

Save the screenshot normally (to disk, to a shared folder the container mounts),
then either drag the file into the Roo Code chat input, or give Roo Code the
file path directly and ask it to read the image with its own file tools.

Dragging a file (rather than pasting clipboard data) or pointing Roo Code at a file path sidesteps the remote clipboard-forwarding question entirely, since it's a filesystem operation rather than a clipboard one — a dependable workaround for exactly the environments where clipboard forwarding is incomplete or genuinely unsupported.

4. For a dev container, confirm the container's VS Code server setup isn't missing clipboard-related configuration

// devcontainer.json
{
  "customizations": {
    "vscode": {
      "settings": {
        // Confirm no setting here is unintentionally disabling
        // remote UI features related to clipboard forwarding
      }
    }
  }
}

A dev container built from a minimal base image or an older devcontainer template may simply predate expectations around clipboard forwarding — checking for an outdated base image or missing VS Code Server component, and updating to a current one, resolves cases where the gap is a stale environment rather than a setting that needs changing.

Why This Works

None of these failures are Roo Code failing to handle an image it received — in every case, the image data never actually arrives at the extension at all, because it's blocked somewhere in the chain between the local clipboard and the remote extension host: an unforwarded remote connection, a denied browser permission, or an incomplete container setup. Isolating whether even plain text paste works narrows down which of those three layers is the actual gap, explicitly granting browser clipboard permission closes the most common one, and falling back to a file-based path sidesteps the clipboard question entirely when forwarding genuinely isn't available.

Conclusion

An image paste that silently does nothing in a remote or containerized Roo Code session is a clipboard-forwarding gap between the local client and the remote extension host, not a Roo Code feature that's broken. Testing plain text paste first to isolate the layer, explicitly granting clipboard permission in browser-based environments, and falling back to dragging or referencing a saved file when forwarding isn't available turns an invisible dead end into either a working paste or a reliable alternative.