Feature Request: Add setting to disable automatic ide_opened_file context
Resolved 💬 3 comments Opened Jan 7, 2026 by azisai2030 Closed Jan 7, 2026
Problem
In VS Code extension, files opened in the IDE are automatically included as context (via ide_opened_file tag). This can cause unintended behavior when the AI interprets open files as implicit instructions.
Use Case
- User has a session file open for reference
- AI mistakenly continues that session instead of creating a new one
- No way to disable this behavior without switching to terminal mode
Proposed Solution
Add a VS Code extension setting:
| Setting | Description |
|---------|-------------|
| Name | Include Open Files as Context or similar |
| Default | true (current behavior) |
| When false | ide_opened_file tags are not sent to the model |
Current Workaround
Using CLAUDE.md instructions to explicitly ignore ide_opened_file, but a native setting would be more reliable.
Environment
- VS Code Extension on Windows
- Claude Code version: latest
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗