Code generation using Cmd+K gets stuck on “Generating …” after two lines when using Edit Selection. Single line generation, like asking Cursor to print hello world, still works. Code generation hangs for all tasks I’ve tried that require more than 2 lines of generation.
Steps to Reproduce
Code generation hangs after two lines on all .py and .ipynb files I tried.
I’ve tried completely clearing app data and redownloading Cursor but it did not fix the bug.
Expected Behavior
Supposed to complete generation and ask to Accept or Reject. Instead, it is stuck on “Generating…”.
Hey, thanks for the report. This is a known issue and the team is aware. There’s a similar report, especially for .ipynb files.
To help with debugging, can you share:
For now, let’s focus on this:
Console logs: Open Cmd+Shift+P > Developer: Toggle Developer Tools > the Console tab. Then reproduce the bug (Cmd+K, let it get stuck on “Generating…”) and copy everything that shows up in red or looks like an error.
Network Diagnostics: Go to Cursor Settings > Network > Run Diagnostics. Run it and send a screenshot of the results.
Model: Check Cursor Settings > Features > Inline Edit and see which model is selected. Try switching to another one, like from Claude to GPT or the other way around.
I don’t seem to see a Features tab in Cursor Settings, but when I look directly from Cmd+K I can’t choose any of the models other than Auto: this isn’t an issue when using Cmd+L though.