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.