[BUG]:[VSCode] Cannot remove attached images exceeding 5MB limit — input becomes stuck

Resolved 💬 2 comments Opened Mar 11, 2026 by MaksimPushenka Closed Apr 9, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When images exceeding the 5MB API limit are attached in the VSCode extension
chat input, the user has no way to remove them. The input becomes completely
stuck — sending is blocked with an error, but there is no UI control to delete
the attached files.

<img width="1512" height="949" alt="Image" src="https://github.com/user-attachments/assets/04211c2b-7611-4f6f-994a-a7fc60f32739" />

What Should Happen?

Expected Behavior

  • User should be able to remove/delete individual attached images from the input field
  • OR a clearly visible "Send without images" button in the input area

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in VSCode
  2. Attach 1 or more images that exceed 5MB each (e.g. full-resolution screenshots ~9–10MB)
  3. Try to send the message
  4. Observe the error: "X images exceed the API limit (5MB)"
  5. Try to remove the attached images

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.72

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

Actual Behavior

  • No delete/remove control is available for attached images
  • Input is blocked — cannot send with or without images
  • Only workaround: open a new chat, losing current context

Environment

  • Platform: macOS 26.3.1
  • Claude Code Extension Version for VSCode: 2.1.72 (darwin-arm64)
  • Visual Studio Code: 1.101.2 (Universal)

Severity

High — user is completely blocked with no recovery path within the current chat

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗