Composer 2 keeps reverting and reapplying code changes repeatedly

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’m experiencing an issue with Composer 2 where it continuously reverts and reapplies code changes in a loop. This happens without any clear trigger and is frustrating because it wastes tokens unnecessarily.

Steps to Reproduce

Not entirely consistent, but it occurs during normal usage while editing files.

Expected Behavior

Code changes should remain stable after being applied.

Operating System

MacOS

Version Information

Version: 3.0.13
VSCode Version: 1.105.1
Commit: 48a15759f53cd5fc9b5c20936ad7d79847d914b0
Date: 2026-04-07T03:05:17.114Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 23.3.0

For AI issues: which model did you use?

Composer 2

For AI issues: add Request ID with privacy disabled

e23ba72d-a62d-4293-8baf-3a803210979f

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report and the Request ID. We were able to confirm the issue in the logs.

This is a known pattern where the model doesn’t realize its edits were already applied, so it keeps trying to apply them again in a loop. We’ve seen similar behavior with other models too: Agent stuck in editing loop

I’ve passed this to the team. There isn’t a specific ETA yet, but your report with the Request ID helps us prioritize it.

As a workaround, if the loop starts, stop the agent manually and try switching to another model (Claude Sonnet 4.6 or Auto) for that task. Starting a new chat instead of continuing the current one can also help.