Describe the Bug
Agent response stopped with “Connection failed”.
Steps to Reproduce
I’m using Agent Mode with model claude-4-sonnet(Thinking), and are creating some new functions. After I upgrade to 1.12, Agent will somehow stopped with error “Premature close [unknown]”.
I’ve changed many VPN route and all Network Diagnostics are passed.
Not all response are failed, just most of creating screen request.
After I click Resume or Try again, it will stop at the same position.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
版本: 1.2.1 (Universal)
提交: 1.99.3
日期: 031e7e0ff1e2eda9c1a0f5df67d44053b059c5d0
Electron: 2025-07-03T06:08:06.355Z
ElectronBuildId: 34.5.1
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.0
OS: 13.2.152.41-electron.0
Additional Information
Request ID: 3cc40d86-6ecc-4b76-a4e8-0620e257226d
ConnectError: [unknown] Premature close
at C9a.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4757:223764)
at dir.S (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:17741)
at dir.Q (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:17519)
at dir.M (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:16607)
at dir.L (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:15708)
at Hwt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:14500)
at ve.B (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:48:2398)
at ve.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:48:2617)
at Git.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4744:10379)
at u.onmessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6968:12271)
Does this stop you from using Cursor
No - Cursor works, but with this issue