# AI Editor stuck on generating 2 lines

**URL:** <https://forum.cursor.com/t/ai-editor-stuck-on-generating-2-lines/149670>\
**Category:** Bug Reports\
**Tags:** inline-edit\
**Created:** [January 23, 2026, 5:46am UTC](https://forum.cursor.com/t/ai-editor-stuck-on-generating-2-lines/149670 "2026-01-23T05:46:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pz2325](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@pz2325](https://forum.cursor.com/u/pz2325)\
**Post date:** [January 23, 2026, 5:46am UTC](https://forum.cursor.com/t/ai-editor-stuck-on-generating-2-lines/149670/1 "2026-01-23T05:46:03Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

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…”.

### Screenshots / Screen Recordings

 ![Screenshot 2026-01-22 at 10.38.37 PM.png](https://us1.discourse-cdn.com/cursor1/original/3X/d/5/d57d3d00682fdcfb0dafbb314fbf7352f3f5afb7.png)

### Operating System

MacOS

### Version Information

Version: 2.4.21  
VSCode Version: 1.105.1  
Commit: dc8361355d709f306d5159635a677a571b277bc0  
Date: 2026-01-22T16:57:59.675Z (12 hrs ago)  
Build Type: Stable  
Release Track: Default  
Electron: 39.2.7  
Chromium: 142.0.7444.235  
Node.js: 22.21.1  
V8: 14.2.231.21-electron.0  
OS: Darwin arm64 23.4.0

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [January 23, 2026, 6:23am UTC](https://forum.cursor.com/t/ai-editor-stuck-on-generating-2-lines/149670/3 "2026-01-23T06:23:52Z")

</div>

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:

1. 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.

2. Network Diagnostics: Go to `Cursor Settings` \> `Network` \> `Run Diagnostics`. Run it and send a screenshot of the results.

3. 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.

Let me know what the logs show.

---

<div class="post-metadata">

**Author:** ![pz2325](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@pz2325](https://forum.cursor.com/u/pz2325)\
**Post date:** [January 23, 2026, 6:50am UTC](https://forum.cursor.com/t/ai-editor-stuck-on-generating-2-lines/149670/4 "2026-01-23T06:50:40Z")

</div>

Thanks for the response! Here’s what I see:

1. 

 ![Screenshot 2026-01-22 at 11.38.34 PM](https://us1.discourse-cdn.com/cursor1/original/3X/f/0/f0d57c6d2ef788f6c12aa47046e7810648c8e8ba.png)

1. 

2. 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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [February 14, 2026, 6:51am UTC](https://forum.cursor.com/t/ai-editor-stuck-on-generating-2-lines/149670/5 "2026-02-14T06:51:22Z")

</div>

Closed on February 14, 2026, 6:51am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
