Cursur loop bug

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Request ID: 6de0a4ec-61bf-4a0f-92f9-da92e706e5f4
{“error”:“ERROR_INTERNAL”,“details”:{“title”:“Agent Looping Detected”,“detail”:“The model got stuck in a repeating response pattern, so this turn was stopped. Please try again with a different model or start a new conversation. If the problem persists, please contact support.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:}}
The model got stuck in a repeating response pattern, so this turn was stopped. Please try again with a different model or start a new conversation. If the problem persists, please contact support.
Agent Looping Detected The model got stuck in a repeating response pattern, so this turn was stopped. Please try again with a different model or start a new conversation. If the problem persists, please contact support.
NonRetriableError: Agent Looping Detected The model got stuck in a repeating response pattern, so this turn was stopped. Please try again with a different model or start a new conversation. If the problem persists, please contact support.
at Z_S (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8767:222830)
at _Oa (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8767:221337)
at ■■■ (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8768:14076)
at Object.classify (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8768:18305)
at fyS (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8768:6340)
at async ROa.run (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8768:17612)
at async Xfe.resume (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8870:35985)
at async KJl.streamFromAgentBackend (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:20833:16850)
at async KJl.getAgentStreamResponse (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:20833:38905)
at async fHe._submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8848:4456)

Steps to Reproduce

I dont know

Operating System

Windows 10/11

Version Information

GPT 5.6 Luna medium

For AI issues: which model did you use?

GPT 5.6 Luna Medium

For AI issues: add Request ID with privacy disabled

Request ID: 6de0a4ec-61bf-4a0f-92f9-da92e706e5f4
{“error”:“ERROR_INTERNAL”,“details”:{“title”:“Agent Looping Detected”,“detail”:“The model got stuck in a repeating response pattern, so this turn was stopped. Please try again with a different model or start a new conversation. If the problem persists, please contact support.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:}}
The model got stuck in a repeating response pattern, so this turn was stopped. Please try again with a different model or start a new conversation. If the problem persists, please contact support.
Agent Looping Detected The model got stuck in a repeating response pattern, so this turn was stopped. Please try again with a different model or start a new conversation. If the problem persists, please contact support.
NonRetriableError: Agent Looping Detected The model got stuck in a repeating response pattern, so this turn was stopped. Please try again with a different model or start a new conversation. If the problem persists, please contact support.
at Z_S (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8767:222830)
at _Oa (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8767:221337)
at ■■■ (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8768:14076)
at Object.classify (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8768:18305)
at fyS (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8768:6340)
at async ROa.run (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8768:17612)
at async Xfe.resume (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8870:35985)
at async KJl.streamFromAgentBackend (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:20833:16850)
at async KJl.getAgentStreamResponse (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:20833:38905)
at async fHe._submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/brody/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:8848:4456)

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report and the Request ID.

This message is coming from a safety check that stops a response when it sees the same lines repeated back to back. Sometimes it triggers on responses where repetition is valid (similar log lines, list items, repeated code). In that case, switching models in the same chat usually won’t help, because it’s the response content that triggers it, not the model. It’s an issue we’re tracking.

Try this and let me know how it goes:

  1. Start a new chat (don’t continue the one that crashed).
  2. Send the same request and add this line at the end: “Put any code, logs, or lists inside code blocks.”
  3. If the task would output lots of similar lines, ask for a short summary instead of the full output.

If “Agent Looping Detected” shows up again, send the new Request ID and briefly say what you asked the agent to do (for example “list all the errors in this log” or “rewrite these files”). That helps us narrow down what exactly is triggering the check.