Live data from Hacker News

Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

rajveerbachkaniwala.com

11–20 of 95 posts

Re: Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

#11
post #4
post #3

The last "When this stops being needed" needs one amendment: "Or stop using Windows."

Not a bug, pasting images into the terminal is not supported, do not do this, that's not what the terminal is for or how it is used. The standard way is to pass the path of a file to the program as a runtime parameter or in some config file. Terminals are not alternative web browsers/graphical application sandboxes.

Sixel came out in the 80's as a way to print on dot matrix printers. If your terminal doesn't support that yet, you might want to look into updating your software.

Re: Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

#12
post #4

Earlier quoted context omitted.

Not a bug, pasting images into the terminal is not supported, do not do this, that's not what the terminal is for or how it is used. The standard way is to pass the path of a file to the program as a runtime parameter or in some config file. Terminals are not alternative web browsers/graphical application sandboxes.

So basically don't use Claude Code is your suggestion. Not very helpful, guy.

[deleted]

Re: Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

#13

Ctrl+V paste works for me on WSL. My secret is that I have given up on WSLg and use a standalone X Windows server. Specifically, the X410 X Server. This removes a whole lot of weird behavior including the ones described by the article.

I have not tried this mostly because I figured it would a resource hog and clunky. Are you describe your experience with X410 on WSL in some more detail? What are the downsides?

Re: Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

#16

Ctrl+V paste works for me on WSL. My secret is that I have given up on WSLg and use a standalone X Windows server. Specifically, the X410 X Server. This removes a whole lot of weird behavior including the ones described by the article.

you do you, but I've had only good luck with WSLg. my main gripe with it is that it could be doing more. internally (part of?) WSLg uses the RDP protocol, which natively supports audio forwarding, USB passthru and smart cards. yet none of it's wired up.

(disclaimer: I work at MS, not on WSL)

Re: Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

#18
Why are we emotionally tied to command line interfaces

Desktop apps are a second class citizen that do not get feature parity

Lot of actions on Claude Code seem much more suited for a thoughtfully designed GUI

Even the chat responses and links therein can benefit from judicious use of rich text and formatting and real hyperlinks to other parts of the UI or elsewhere

Favourite Skills can be toolbar buttons or menus if user so wishes.

Re: Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

#19
post #4

Earlier quoted context omitted.

Not a bug, pasting images into the terminal is not supported, do not do this, that's not what the terminal is for or how it is used. The standard way is to pass the path of a file to the program as a runtime parameter or in some config file. Terminals are not alternative web browsers/graphical application sandboxes.

So basically don't use Claude Code is your suggestion. Not very helpful, guy.

I think you've misunderstood, guy.

Re: Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

#20
post #10

Earlier quoted context omitted.

So basically don't use Claude Code is your suggestion. Not very helpful, guy.

pass the url (local or otherwise) of the image to Claude code. Otherwise it's not the terminal's problem, please don't pressure Microsoft to introduce an attack vector to wsl for slop's sake.

The image in my clipboard doesn't have an url.
Post reply on HN