Hey! As an immediate fix, could you try changing your model name? There’s some chance this is a bug that occurs if you were using an API-key-only-model and you switch from API key to no API key.
It happens more frequently on the inline chat with the code substitution, but it happens on side chat also, but the error is more generic.
Also there might be a correlation with context length and failure but it happens even with code of around 60-100 lines.
Not sure if it makes sense but the project I am working on is open source, not sure if the problem is deeper or even makes sense to try with it, since I know there are project specific indexing.
I have 4-10 files open, and it consistently fails.
FYI it does happen on other projects, but this might be the closest I can to giving you a reproducible example.
I worked today from a different place/connection and still got the error.
Other devs at the company which we are also validating cursor have seen the error but maybe less frequently?!?
Another clue, sometimes I can go a few runs without seeing the error, but once it happens, it becomes difficult to “not” get the error, and I have to stop using it.