Claude Opus 4 loops endlessly & ignores code‑fix instructions

Describe the Bug

When I ask Claude Opus 4 to fix a specific part of my code (e.g. “Correct the off‑by‑one error in this loop”), it ignores the scope of my request, repeats the same suggestions in a loop, and never delivers a working solution—even after multiple prompts. I haven’t been charged yet because I blocked the transaction, but I’d like to resolve this before any payment goes through.

Steps to Reproduce

Open a new session in Cursor.ai using Claude Opus 4.

Paste a code snippet and prompt: “Please fix only the off‑by‑one error in this loop.”

Observe that the model:

Echoes identical text verbatim across responses

Adds unrelated commentary outside the requested scope

Never converges on a corrected code snippet

Sign out, create a fresh Cursor account, subscribe again, and repeat steps 1–3.

Expected Behavior

The model applies the requested change once and returns corrected code.

It respects “inside‑scope” instructions without redundant repetition.

The session ends after delivering a valid solution—no endless loops.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:55:16.443Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi @VerysignVL and thank you for the detailed bug report.

Apologies for the looping issue, we have now deployed a fix.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.