Hey, thanks for the report. The Connection stalled error in runAgentLoop is a known issue in version 2.4.21, and the team is investigating it. A few users have reported this over the last few days.
Related reports: Connection Error / Stalled Agent requests for hours - #9 by Fares_Bendhiab
Try this workaround that helped other users with the same stack trace:
- Fully quit Cursor
Cmd+Q - Rename your project folder in Finder (for example
MyProject→MyProject_v2) - Open the renamed folder in Cursor
If that doesn’t help, try switching to the Stable channel: Cursor Settings > Beta > Stable > Restart.
Keep an eye on updates in the linked thread.