Cannot remove pasted photo after size limit error - session gets stuck
Resolved 💬 5 comments Opened Feb 26, 2026 by vpulido-creator Closed Mar 3, 2026
Description
When pasting a large photo into the Claude Code chat (VSCode extension), the user gets an error message saying to reduce the size before pasting. However, after this error:
- The photo that was already added cannot be removed
- The session becomes stuck - the user cannot continue working
- The only workaround is to start a new session (
/clear)
Steps to Reproduce
- Open Claude Code in VSCode
- Paste a large image (e.g. >5MB) into the chat input
- Observe the "reduce the size" error message
- Try to remove the pasted photo — there is no way to do so
- The session is now stuck
Expected Behavior
- There should be a way to remove/dismiss a pasted photo (e.g. an X button on the thumbnail)
- After a size limit error, the oversized photo should be automatically removed or the user should be able to dismiss it
- The session should not get stuck
Actual Behavior
- No option to remove the pasted photo
- Session becomes unusable after the error
- User is forced to clear the entire session and lose context
Environment
- Claude Code VSCode extension
- Windows 11
🤖 Generated with Claude Code
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗