Grok model - Unrecoverable agent model looping detected

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Unrecoverable agent model looping detected.

Steps to Reproduce

select the groq model with agent. send promt then error occur

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.14 (Universal)
VSCode Version: 1.99.3
Commit: 64b72c9cd7e38203078327f881d5fe74930b2600
Date: 2025-09-11T21:42:07.958Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

grok-code-fast

For AI issues: add Request ID with privacy disabled

Request ID: bd8cd12b-6646-4b1f-a3cf-d193fb695750
{“error”:“ERROR_CUSTOM_MESSAGE”,“details”:{“title”:“Unrecoverable agent model looping detected”,“detail”:“Unrecoverable agent model looping detected.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [aborted] Error
at xyl.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4910:338991)
at Qvr._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:36019)
at Qvr._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:35761)
at Qvr._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:34526)
at Qvr._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:33348)
at BCt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:31442)
at ye._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at ye.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at Wot.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4895:12154)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7028:18292)

Additional Information

Request ID: bd8cd12b-6646-4b1f-a3cf-d193fb695750
{“error”:“ERROR_CUSTOM_MESSAGE”,“details”:{“title”:“Unrecoverable agent model looping detected”,“detail”:“Unrecoverable agent model looping detected.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [aborted] Error
at xyl.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4910:338991)
at Qvr._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:36019)
at Qvr._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:35761)
at Qvr._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:34526)
at Qvr._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:33348)
at BCt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:487:31442)
at ye._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at ye.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at Wot.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4895:12154)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7028:18292)

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Grok code is not working at all, it is not in a loop yet 2 secs into starting a task with grok code, it “thinks” its in a unrecoverabal loop.

req code: (Request ID: f76e42e0-c812-4c51-a3e5-7c2c081a2455)

edit: happening with gpt 5 as well

Getting the same error while using gpt-5-high and claude 4 sonnet models after few files edits.

Request ID: 9f7b49ca-9fd4-43a1-8299-37aeb7c04e2c
{“error”:“ERROR_CUSTOM_MESSAGE”,“details”:{“title”:“Unrecoverable agent model looping detected”,“detail”:“Unrecoverable agent model looping detected.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
ConnectError: [aborted] Error
at iol.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4814:319459)
at Zhr._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:212075)
at Zhr._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:211817)
at Zhr._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:210582)
at Zhr._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:209404)
at O_t.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:488:207498)
at ye._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at ye.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at Prt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4801:12154)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6983:18168)

Hey, thanks for the report. I can’t reproduce it, maybe it was temporary. Can you create a new chat and try again?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Any and all models and chats get a “Unrecoverable agent model looping detected” after just a few tool calls.

Steps to Reproduce

Give grok code or gpt 5 a task

Expected Behavior

not show “Unrecoverable agent model looping detected” when its not in a loop

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.5.11 (system setup)
VSCode Version: 1.99.3
Commit: 2f2737de9aa376933d975ae30290447c910fdf40
Date: 2025-09-05T03:48:32.332Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

grok code, gpt 5, gpt 5 low

For AI issues: add Request ID with privacy disabled

(Request ID: 1ba7cabf-8f2d-4662-9eca-973ff2ee5b0c)

Does this stop you from using Cursor

Yes - Cursor is unusable

Same issue. Opening a new chat does not fix it. And this issue is not limited to Grok alone because even on auto the same thing happens. Getting this error since the past 1-2 weeks. No such error existed a couple months ago. This is the error which has made Cursor completely unusable.

I try to add timestamp like ‘current time: 2025-10-19 00:11:22‘ at the begin of prompt and retry. Still same errors. It will oupput something , then restart, and the final content is not complete. output is like bellow.

```html
<!DOCTYPE html>
<html lang="zh-CN" style="font-size: 40px;">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Poster</title>
<style>
  :root{
    --ink:#1f1f1f;
    --ink-80:#1f1f1fcc;
    --ink-60:#1f1f1f99;
    --line:#00000014;
    --white:#fff;
    --dot:#ececec;
    --accent:#ff6b6b;
    --accent-light:#ffe0e0;
    --yellow:#ffbd44;
    --green:#00ca4e;
    --blue:#4dabf7;
    --blue-light:#e7f5ff;

    --h-topbar: 56px;
    --h-toolbar-btn: 34px;
    --radius: 10px;
    --radius-sm: 8px;
  }
...

Let me reevaluate and take a different approach.

```html
<!DOCTYPE html>
<html lang="zh-CN" style="font-size: 40px;">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Poster</title>
<style>
  :root{
    --ink:#1f1f1f;
    --ink-80:#1f1f1fcc;
    --ink-60:#1f1f1f99;
    --line:#00000014;
    --white:#fff;
    --dot:#ececec;
    --accent:#ff6b6b;
    --accent-light:#ffe0e0;
    --yellow:#ffbd44;
    --green:#00ca4e;
    --blue:#4dabf7;
    --blue-light:#e7f5ff;

    --h-topbar: 56px;
    --h-toolbar-btn: 34px;
    --radius: 10px;
    --radius-sm: 8px;
  }

  body{
    margin:0;
    padding:0;
    color:var(--ink);
    font-family: FZYingBiKaiShu-S15S, -apple-system, "PingFang SC", sans-serif;
    background: var(--white);
  }

  .canvas{
    background-image: radial-gradient(circle, var(--dot) 1px, rgba(0,0,0,0) 1px);
    background-size:16px 16px;
  }

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