[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

  1. Open any file in VS Code (e.g., .claude.json)
  2. Select some text or make edits in that file
  3. Open Claude Code chat panel
  4. Notice the file appears as an attachment pill in the input area
  5. Close the file tab in the editor
  6. The attachment pill remains in chat input
  7. Try to remove it:
  • Hover over it — no X appears
  • Right-click — no context menu
  • Shift+click to select, then Backspace — nothing happens
  1. 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_

View original on GitHub ↗

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