AI Assistant sees outdated files and attaches random files

Using Claude 4.6 Opus in AI Chat I attached a couple of small files (vite.config.js and package.json) and asked to explain. The assistant then automatically attached additional entirely unrelated files from an different project and seemed to be looking at outdated versions of my attached files. At least once it pointed out that my files differed from what it saw in project view (which I didn't attach). If I changed my prompt to tell it to disregard project structure it seems to get the correct version of my files.

So… not sure if this is just the way things are, or is this an issue/feature of the model I chose? Or maybe I have something configured incorrectly? I haven't encountered any of these issues with the default model (GPT-5.4 mini). 

0
Hello Dietrich,

The behavior you’re seeing is a known issue, especially when Codebase Mode is enabled. It’s not specific to Claude; similar reports exist for other models as well, although the exact behavior may vary.
To reduce this, try disabling Codebase Mode in the AI Assistant settings. With it turned off, the assistant may still include the currently open file or selection, but the behavior should be more predictable.

If the assistant continues to reference outdated or unrelated files after that, you can try invalidating IDE caches:
https://www.jetbrains.com/help/phpstorm/invalidate-caches.html

If the issue persists, it would be helpful to collect debug logs, a chat dump, and AI Assistant request logs for further investigation:
https://youtrack.jetbrains.com/articles/SUPPORT-A-75/How-to-collect-IntelliJ-IDE-logs-for-AI-Assistant-troubleshooting

Once you have those, please submit a support request here:
https://intellij-support.jetbrains.com/hc/en-us/requests/new?product=ai_assistant
This will help the team investigate the root cause more thoroughly.
0

It sounds like the model is pulling in extra workspace context alongside your attached files. Since telling it to ignore the project structure fixes the issue, I'd suspect automatic project indexing or context retrieval rather than a problem with your files. If GPT-5.4 mini isn't doing this, the different models may simply handle workspace context differently.

 

0

请先登录再写评论。