Slash Command Interference: Image Upload Fails with Read Tool Error
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
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?
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
Passing in pasted images to custom slash commands should be supported as of v1.0.38.
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.