ide_opened_file context injection is frequently harmful and should be opt-out
Resolved 💬 3 comments Opened Feb 13, 2026 by nratzan Closed Feb 17, 2026
Description
The ide_opened_file feature that injects "The user opened file X in the IDE" into conversation context is net-negative in practice. Opening or switching tabs in VS Code triggers irrelevant context injection that derails conversations and has caused errors.
Actual Behavior
- Switching tabs or opening files injects
<ide_opened_file>messages into the active conversation - These are almost never relevant to the current task
- Claude sometimes acts on them (e.g., reading the file, changing topic)
- Has directly caused errors in multi-step workflows
Expected Behavior
- This feature should be opt-in or opt-out via settings
- Or: only inject when the user explicitly references the file
- Or: remove entirely
Environment
- VS Code extension
- Windows 11
- Claude Opus 4.6
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗