claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Slash Command Interference: Image Upload Fails with Read Tool Error

Open BobbyWang0120 opened this issue 7 months ago • 2 comments

Bug Description When using a custom slash command, I've encountered a consistent issue where Claude Code attempts to use the Read tool on an image pasted via Ctrl+V. This invariably leads to a "file not found" error, even when explicitly instructing Claude Code not to read the file but to directly "see" the image. Consequently, Claude Code fails to recognize any user-uploaded images in this scenario. However, when no slash command is used, Claude Code successfully processes and views the pasted images without issue.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.29
  • Feedback ID: e29896a3-cd8b-4087-b5e9-36d710aefdfe

BobbyWang0120 avatar Jun 19 '25 07:06 BobbyWang0120

To clarify, are you doing something like /my_custom_slash_command Tell me what's in [Image #1], where the pasted image is part of the slash command argument?

dicksontsai avatar Jun 23 '25 06:06 dicksontsai

To clarify, are you doing something like /my_custom_slash_command Tell me what's in [Image #1], where the pasted image is part of the slash command argument?

Yes

BobbyWang0120 avatar Jun 23 '25 20:06 BobbyWang0120

Passing in pasted images to custom slash commands should be supported as of v1.0.38.

dicksontsai avatar Jul 01 '25 00:07 dicksontsai

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.

github-actions[bot] avatar Aug 10 '25 14:08 github-actions[bot]