getcursor / cursor

The AI Code Editor
https://cursor.com
24.52k stars 1.53k forks source link

Model Changer is Buggy (e.g. reverting while typing query, gets stuck after lots of changes) #2215

Open nikvdp opened 1 week ago

nikvdp commented 1 week ago

I use gpt-4o-mini primarily cause it's fast and unlimited on pro, but pull out the big guns (sonnet or opus) pretty regularly too, and in the latest release (v0.41.3, commit: 51c8aff7cb5a89f4a0e462fbacab938bdbfaf140) something has changed that causes the model to keep switching on it's own.

It primarily happens in the Chat pane (cmd+L) but sometimes happens in the composer and cmd+k views too.

Generally the flow is something like:

It's some sort of delayed reaction thing, it's not always gpt-4o-mini -> claude-3.5-sonnet, I've seen it happen quite a few times in the other direction as well. It's can be annoying cause it often leads to me eating up my premium sonnet requests on trivial issues that I had been trying to use gpt-4o-mini for.

I've even on occasion seen it switch on it's own while in the middle of generating an answer (which is weird to watch -- it types out half an answer and then essentially switches models and re-generates the answer using the model it switched back to instead of the one I picked).

Any idea what the cause is or how to fix or workaround it it?

danperks commented 1 week ago

Hi, I can kind of recreate this.

If I go to type a query, and then change the model a lot at random, at some point it gets stuck and won't change again. I'll flag to the devs!

nikvdp commented 1 week ago

Oh interesting! It hadn't occurred to me as relevant until I saw your message, but I have a habit of hitting cmd+/ repeatedly (like 6 times in a row) to make the model picker loop around without having to touch the mouse. Might be a delayed reaction from so many model switches in a row that causes the issue