Skip to content

Attachements do not work on WSL #1202

Closed

Description

@tmn73

I'm sure this is not a priority, but just letting you guys know attachements dont work in WSL.
When I paste an image for example, nothing is happening.
If I point to a file on windows ex C:\Users\xxx\Pictures\Screenshots\image.png it says "I can't access the file at that Windows path from this Linux environment."

I will try to work on a PR

Activity

  1. ak127a commented on Aug 26, 2025

    @ak127a

    any updates on this?

  2. rekram1-node commented on Sep 24, 2025

    @rekram1-node
    Collaborator
  3. sai-sy commented on Sep 30, 2025

    @sai-sy
    Contributor
  4. R44VC0RP commented on Jan 25, 2026

    @R44VC0RP
    Collaborator

    The main issue here (clipboard image paste in WSL) was fixed in Nov 2025 via PR #4123. If you're on a recent version, Ctrl+V image paste should work.

    For the Windows path issue (C:\Users\... not being recognized), there's an open PR #8209 that adds automatic path conversion. In the meantime, you can manually convert paths:

    • C:\Users\tommy\image.png → /mnt/c/Users/tommy/image.png

    Closing as the core functionality is fixed. Thanks for the report!

  5. amirasyraf commented on Feb 18, 2026

    @amirasyraf

    @R44VC0RP is the fix there only for a specific terminal emulator (i.e. wezterm)?

    I'm on latest opencode and Windows Terminal and image paste doesn't work

  6. Yousa-Mirage commented on Feb 24, 2026

    @Yousa-Mirage

    @R44VC0RP is the fix there only for a specific terminal emulator (i.e. wezterm)?

    I'm on latest opencode and Windows Terminal and image paste doesn't work

    The same.

  7. turazashvili commented on Mar 4, 2026

    @turazashvili

    +1

  8. lwkrakowai-maker commented on Apr 8, 2026

    @lwkrakowai-maker

    +1

  9. FilJed commented on Apr 10, 2026

    @FilJed

    +1

  10. amirasyraf commented on Apr 10, 2026

    @amirasyraf

    The fix is:

    {
      "$schema": "https://opencode.ai/config.json",
      "keybinds": {
        "input_paste": "alt+v"
      }
    }
    

    in your opencode config

    Thanks to dansan92: #1429 (comment)

  11. FilJed commented on Apr 12, 2026

    @FilJed

    "input_paste": "alt+v"

    Confirm it's working. Thank you!

  12. lwkrakowai-maker commented on Apr 14, 2026

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions