[BUG] VS Code Extension: No way to remove attached file reference from input area
Resolved 💬 2 comments Opened Jan 26, 2026 by v-p3truk Closed Feb 28, 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 working with a file in VS Code, it gets automatically attached to the Claude Code chat input (appears as a pill like ".claude.json").
Problem: There's no UI to remove this attachment:
- No X button visible
- No context menu on right-click
- Backspace/Delete doesn't work when selected
- Closing the file in editor doesn't remove the attachment
Workaround: Reload Window (Cmd+Shift+P → "Reload Window")
Expected: Click X or right-click to remove attachment
Platform: macOS
Extension version: 2.1.19
What Should Happen?
Expected: Click X or right-click to remove attachment
Error Messages/Logs
Steps to Reproduce
- Open any file in VS Code (e.g.,
.claude.json) - Select some text or make edits in that file
- Open Claude Code chat panel
- Notice the file appears as an attachment pill in the input area
- Close the file tab in the editor
- The attachment pill remains in chat input
- Try to remove it:
- Hover over it — no X appears
- Right-click — no context menu
- Shift+click to select, then Backspace — nothing happens
- Attachment persists until Window reload
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.17
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗