[BUG] [VS CODE EXTENSION] Pasting images doesn't work most of the time

Resolved 💬 3 comments Opened Mar 19, 2026 by topemalheiro Closed Mar 19, 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?

Pasting images doesn't work most of the time.

There is a super basic fix to make it work most of the time. This bug shouldn't be happening this often, as it shows the annoying code inside the chatbox in the screenshot. And sometimes the image code pastes into the code so this is critical.

<img width="404" height="37" alt="Image" src="https://github.com/user-attachments/assets/4c8dbec3-283e-401d-9ec2-697f32a59e3e" />

What Should Happen?

https://github.com/topemalheiro/kilocode-legacy/blob/main/webview-ui/src/kilocode/agent-manager/hooks/useImagePaste.ts

This was made with MiniMax M2.5. This fix made image pasting rarely fail me on Kilo Code legacy.

Error Messages/Logs

Steps to Reproduce

Paste enough images.

Claude Model

Other

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.79

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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