Difficult to explain this one but was able to reproduce it twice:
Using Cursor version 0.47.5. Using Agent mode “Auto” to edit a python file I’ve edited countless times before. Asked it for a basic change.
Instead of editing the .py file (e.g. filename.py), it instead created an entirely new file with the prefix “python:filename.py” in the same filesystem folder. In it, started a continuous infinite loop generation of
# ... existing code ...
# ... existing code ...
# ... existing code ...
Had to stop generation both times.
Workaround was to specify a model instead of “Auto”, used Claude 3.7 (unfortunately I don’t know what model it was actually using in Auto mode)
Version: 0.47.5
VSCode Version: 1.96.2
Commit: 53d6da1322f934a1058e7569ee0847b24879d180
Date: 2025-03-14T21:41:01.221Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0