Claude Code Extension: Fix Auto-Attach (Version 2.1.273+) A developer published a minimal Python patcher that disables the Claude Code VS Code extension's automatic file-context attachment by nulling the argument to applySelectionUpdate in webview/index.js, preventing the and blocks from being sent. The script targets extension versions 2.1.273 and later, backs up the original file, verifies a single anchor match before writing, and is idempotent on reruns; @-mentions and drag-and-drop attachments are unaffected. This is the latest fix for the stupid, annoying file attachment "feature" in claude code. I tested if it only is a visual fix by asking claude for the important information inside the open file in vs code. The following is the readme and python script for the fix created by claude code, using caveman plugin . Minimal patcher. Verified on anthropic.claude-code-2.1.273 . Edits webview/index.js in every installed Claude Code extension with version ≥ 2.1.273 : applySelectionUpdate $ { → applySelectionUpdate $ {/ no-auto-ctx /$=void 0; applySelectionUpdate is the only writer of session.selection , which send turns into the