Skip to content

pasting images doesn't work on konsole, linux #6331

Closed as not planned
Closed as not planned

Description

@scarf005

Description

on konsole, linux, ctrl+v image paste isn't working.

OpenCode version

1.0.206

Steps to reproduce

  1. on firefox, copy screenshot with ctrl+shift+s (or copy any image, in general)
  2. open opencode on konsole, try to paste with ctrl+v
  3. it doesn't do anything
  4. drag-and-dropping existing image file works, probably because it recognizes file path

Screenshot and/or share link

No response

Operating System

fedora 42, linux, kinoite

Terminal

konsole

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 29, 2025
  2. github-actions commented on Dec 29, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. dhruvkej9 commented on Dec 29, 2025

    @dhruvkej9

    copy paste is not working on WSL Ubuntu 24.04 as well

  4. efyandro commented on Dec 30, 2025

    @efyandro

    try shift + insert

  5. scarf005 commented on Dec 31, 2025

    @scarf005
    ContributorAuthor

    try shift + insert

    tried but didn't work

  6. Nab0y commented on Jan 6, 2026

    @Nab0y

    Same issue on Kitty + Wayland
    Environment:

    • OS: Alt Linux
    • Session: Wayland
    • Terminal: Kitty
    • OpenCode: 1.1.3
    • Clipboard tool: wl-clipboard (installed and working)

    Confirmed: Ctrl+V paste and drag & drop don't work for images.
    wl-paste --list-types shows image/png and other formats correctly, so clipboard works fine.

    Workaround:
    Created a custom command /paste-image that saves clipboard image via script and references it:
    ~/.config/opencode/command/paste-image.sh:

    #!/bin/bash
    IMG_PATH="/tmp/opencode-clipboard-image.png"
    if wl-paste --type image/png > "$IMG_PATH" 2>/dev/null; then
        echo "Image saved: $IMG_PATH"
    else
        echo "ERROR: No image in clipboard"
        exit 1
    fi

    ~/.config/opencode/command/paste-image.md:

    ---
    description: Paste image from clipboard (Wayland workaround)
    ---
    !`~/.config/opencode/command/paste-image.sh`
    Analyze the image at @/tmp/opencode-clipboard-image.png
    $ARGUMENTS

    Usage: /paste-image what is on this image?
    Works as expected, but native clipboard paste would be much better.

  7. riatzukiza commented on Jan 12, 2026

    @riatzukiza
    Contributor

    Also stopped working for gpt 5.2 codex oauth. I am using allacritty on ubuntu 24.04 on i3 + kde plasma x11

  8. dhruvkej9 commented on Jan 12, 2026

    @dhruvkej9

    Same issue on Kitty + Wayland Environment:

    • OS: Alt Linux
    • Session: Wayland
    • Terminal: Kitty
    • OpenCode: 1.1.3
    • Clipboard tool: wl-clipboard (installed and working)

    Confirmed: Ctrl+V paste and drag & drop don't work for images. wl-paste --list-types shows image/png and other formats correctly, so clipboard works fine.

    Workaround: Created a custom command /paste-image that saves clipboard image via script and references it: ~/.config/opencode/command/paste-image.sh:

    #!/bin/bash
    IMG_PATH="/tmp/opencode-clipboard-image.png"
    if wl-paste --type image/png > "$IMG_PATH" 2>/dev/null; then
    echo "Image saved: $IMG_PATH"
    else
    echo "ERROR: No image in clipboard"
    exit 1
    fi
    ~/.config/opencode/command/paste-image.md:


    description: Paste image from clipboard (Wayland workaround)

    !~/.config/opencode/command/paste-image.sh
    Analyze the image at @/tmp/opencode-clipboard-image.png
    $ARGUMENTS
    Usage: /paste-image what is on this image? Works as expected, but native clipboard paste would be much better.

    How to paste multiple images ???

  9. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  10. dhruvkej9 commented on Mar 26, 2026

    @dhruvkej9

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

    This still doesn't works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions