Cursor agent in auto mode stuck in indefinite loop, giving the same output again

Describe the Bug

Cursor agent in auto mode stuck in indefinite loop, giving the same output again and again

Steps to Reproduce

Happens sometimes in Agent mode

Expected Behavior

Should exit instead running indefinitely

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.50.5
VSCode Version: 1.96.2
Commit: 96e5b01ca25f8fbd4c4c10bc69b15f6228c80770
Date: 2025-05-18T04:14:41.252Z (1 mo ago)
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Additional Information

Terminating when something like this happens is a better option.

Does this stop you from using Cursor

Yes - Cursor is unusable