[BUG] Context compaction indicator (circle icon) consumes image attachments
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?
This issue occurs within the Claude Code extension for VS Code. Clicking the context usage indicator (the partially filled circle) to compact the context unintentionally sends the attached image along with the auto-generated /compact command, while correctly leaving the text prompt behind.
<img width="297" height="148" alt="Image" src="https://github.com/user-attachments/assets/729fd281-f23b-44ae-9e10-51c0bce7e437" />
<img width="296" height="242" alt="Image" src="https://github.com/user-attachments/assets/4862ee21-4090-4ec9-8048-ae4718f882a8" />
Actual:
The image is incorrectly consumed and sent with the /compact command and removed from the next prompt. The text prompt remains alone in the input box.
What Should Happen?
Context compaction runs independently. Both the drafted text and the image attachment remain in the input field.
Error Messages/Logs
Steps to Reproduce
- Open the Claude Code extension in VS Code.
- Draft a text prompt in the input field.
- Attach an image to the same input field.
- Click the context usage indicator (circle icon) to trigger compaction.
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
v2.1.202
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_