Agent gets stuck

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When asking the cursor to divide files, it seems like it did 1 file, then it ended up in an infinite loop of doing “nothing”.

Steps to Reproduce

I asked it to make sure all files in 1 folder are max 500 lines.

Expected Behavior

It would finish it’s task.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.4.0-pre.41.patch.0 (user setup)
VSCode Version: 1.105.1
Commit: e62153373d5f281ae01af6e3d66e0bcef1e5e830
Date: 2026-01-16T08:27:33.020Z
Build Type: Stable
Release Track: Nightly
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

Auto

For AI issues: add Request ID with privacy disabled

6b06f6a2-7b16-40ef-b845-f97316bcd3bd

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. From your screenshot, I can see the agent completed the first step (1/7) and then got stuck on “Planning next moves”.

This is a known issue and the team is already looking into it. I added your request ID.

A few things to try:

  1. Switch the model: instead of Auto, try a specific model (Sonnet 4.5 or GPT 5). Auto can sometimes cause these hangs.

  2. Use Stable instead of Nightly: you’re on Nightly (2.4.0-pre.41). Try switching back to the stable version: Cursor Settings > Beta > Switch to Stable. Nightly can be less stable.

  3. Split the task: instead of “all files max 500 lines”, ask it to process 1 to 2 files at a time.

  4. Start a new chat: if it’s stuck, stop the agent and start a new chat from scratch.

Let me know if any of these helped.