Image Paste Functionality Broken in CLI Interface

Status Fixed / completed
Maintainer reply None cached
Activity 5 comments · opened Jul 22, 2025 · closed Jul 31, 2025

Bug Description
Cannot paste an image into cli claude code interface

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 1.0.57
  • Feedback ID: 91c4f4d4-fd22-4097-a97c-8453878f5f71

Errors

[{"error":"Error: ENOENT: no such file or directory, open 'C:\\proc\\version'\n    at Module.readFileSync (node:fs:441:20)\n    at Object.readFileSync (file:///C:/Users/bosco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:659:7096)\n    at file:///C:/Users/bosco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:659:8658\n    at Q (file:///C:/Users/bosco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:653:14408)\n    at __4 (file:///C:/Users/bosco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:753:63371)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-22T19:25:50.021Z"},{"error":"Error: Command failed: tasklist | findstr /I \"Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\"\nFINDSTR: No se puede abrir Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\r\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:883:11)\n    at execSync (node:child_process:955:15)\n    at D7 (file:///C:/Users/bosco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:841:5854)\n    at ds (file:///C:/Users/bosco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1322:1937)\n    at file:///C:/Users/bosco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2774:9388\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///C:/Users/bosco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2525:7034\n    at async Promise.all (index 12)","timestamp":"2025-07-22T19:25:53.544Z"}]

View original on GitHub ↗

5 Comments

kopyl · 1 year ago

Same. I can't just create a screenshot with command+control+shift+4 and paste it in the CLI.

I can paste a file from my desktop though (if i make the same screenshot without holding the control key)

xuanswe · 1 year ago

Image file

I can copy an existing image file and paste (Ctrl+V) to PowerShell inside Windows Terminal.

But it does nothing if using PowerShell inside IntelliJ IDEA.

Clipboard screenshot captured via Snipping Tool

Always does nothing.

Versions

Windows 11, 24H2 (OS Build 26100.4652)

Windows Terminal 1.22.11751.0

PowerShell 7.5.2

com.anthropic.code.plugin (0.1.11-beta)

IntelliJ IDEA 2025.1.3 (Ultimate Edition)
Build #IU-251.26927.53, built on June 23, 2025
Source revision: a5abecbe752fe
Runtime version: 21.0.7+9-b895.130 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
Kotlin plugin: K2 mode
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 6144M
Cores: 20
Registry:
  debugger.watches.in.variables=false
  ide.experimental.ui=true
  jvm.dfa.analysis.ui.security.analysis.window.was.shown=true
  terminal.new.ui.reworked=true
  kotlin.scripting.index.dependencies.sources=true
  editor.minimap.enabled=true
Non-Bundled Plugins:
  com.anthropic.code.plugin (0.1.11-beta)
Kotlin: 251.26927.53-IJ
rizrmd · 1 year ago

I just created a windows app to do this, It will copy the current screenshot as path, and you can ctrl+v to claude code: https://github.com/rizrmd/shotpath

boscorp · 1 year ago

I don't not know when, but now it works. I close this issue.

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.