Agent can't make changes

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When model wants to make some changes in the code, it’s stuck and never edit it, just infinity loading.

Steps to Reproduce

I guess just ask models.

Expected Behavior

Work.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

(on 2.1.50 the same)
Version: 2.2.8 (user setup)
VSCode Version: 1.105.1
Commit: acdb5a1ab634f13d3d9381161dcb9603f184e670
Date: 2025-12-10T07:03:58.386Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

GPT mostly

Additional Information

Tried to reinstall and change http 2.0 to 1.1 and 1.0. apply_patch just doesn’t make changes I guess.

Does this stop you from using Cursor

Yes - Cursor is unusable

4 Likes

I also see this problem.

Same Issue. Was fine when I went to sleep last night. Woke up and now patch tool is not working.

Version: 2.1.50 (user setup)
VSCode Version: 1.105.1
Commit: 56f0a83df8e9eb48585fcc4858a9440db4cc7770
Date: 2025-12-06T23:39:52.834Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

Same
seems to occur only with gpt models

Yeah this is a huge pain in the ■■■, why would you give us GPT-5.1 Codex Max for free then completely nerf the ability to use any GPT models?

Same problem for me

Can confirm. Auto works fine but even simple edits (e.g., hello world) aren’t working with GPT.

Same issue for me. logs say

Uncaught Error: [composer] Composer data handle is disposed

Hey, thanks for the report. Looks like a current regression with applying edits on Windows. Similar threads and status:

Need a bit more data to fix this faster:

  • 2-3 recent Request IDs from failed GPT attempts (chat top right > Copy Request ID)
  • Logs from Help > Toggle Developer Tools > Console during the hang
  • Result of running from terminal: cursor --disable-extensions
  • Is External File Protection enabled and do you see Windows permission notifications for edits?

Ready to connect this to our internal bug report.

I’m on macOS and having the same issue.

1 Like

I’m having the same problem, it took ages to load.

I also have this issue on gpt-5.1-codex-max

Request ID: f72fe125-29e5-494e-90f4-0643167ef013

I’m on Linux and it’s not working. Something changed specifically today and specifically with GPT.

It seems that only the GPT model has a problem.

1 Like

Request IDs:

  • 507df187-cfee-4d0e-b51d-b7e90bddad83
  • abe3a394-9c3a-47ce-bfbe-e4f0897cc833
  • 7f8aa64e-b027-4fe5-aaaf-9d2ccaf9f8d9

I checked the logs as requested and this is all I saw after it initiated then hung:

workbench.desktop.main.js:55  WARN ToolCallEventService: Tracked tool call start - call_mDGPK5ZO8K9FTAlTccAqKGHO
ctc_064b3af3fbc7aaf8016939abffef5c8195ac6ab4aa1d1c3fda (apply_patch)
warn @ workbench.desktop.main.js:55
warn @ workbench.desktop.main.js:55
warn @ workbench.desktop.main.js:8929
trackToolCallStart @ workbench.desktop.main.js:2974
runStreamingTool @ workbench.desktop.main.js:3004
toolWrappedStream @ workbench.desktop.main.js:3004
await in toolWrappedStream
(anonymous) @ workbench.desktop.main.js:4094
handleStreamComposer @ workbench.desktop.main.js:2786
streamResponse @ workbench.desktop.main.js:7074
(anonymous) @ workbench.desktop.main.js:7149
(anonymous) @ workbench.desktop.main.js:7151
(anonymous) @ workbench.desktop.main.js:7145
(anonymous) @ workbench.desktop.main.js:7145
(anonymous) @ workbench.desktop.main.js:7145
(anonymous) @ workbench.desktop.main.js:3004
(anonymous) @ workbench.desktop.main.js:7149
processCodeBlocks @ workbench.desktop.main.js:2932
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:4094
await in submitChatMaybeAbortCurrent
(anonymous) @ workbench.desktop.main.js:52
zor @ workbench.desktop.main.js:52
kWd @ workbench.desktop.main.js:52
n.value @ workbench.desktop.main.js:52
hr @ workbench.desktop.main.js:6288

Whenever I eventually cancelled the request, I got these:

workbench.desktop.main.js:2844 Error checking repo readiness: Error: spawn git ENOENT
(anonymous) @ workbench.desktop.main.js:2844
await in (anonymous)
(anonymous) @ workbench.desktop.main.js:276
_o @ workbench.desktop.main.js:276
Y @ workbench.desktop.main.js:276
Dx @ workbench.desktop.main.js:276
eAh @ workbench.desktop.main.js:2844
(anonymous) @ workbench.desktop.main.js:276
_o @ workbench.desktop.main.js:276
q @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:2844
get children @ workbench.desktop.main.js:6135
(anonymous) @ workbench.desktop.main.js:276
C6a @ workbench.desktop.main.js:276
Ust @ workbench.desktop.main.js:276
Ee @ workbench.desktop.main.js:276
JE @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:276
_o @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:276
C6a @ workbench.desktop.main.js:276
Ust @ workbench.desktop.main.js:276
St @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:276
_o @ workbench.desktop.main.js:276
q @ workbench.desktop.main.js:276
get children @ workbench.desktop.main.js:6135
(anonymous) @ workbench.desktop.main.js:276
C6a @ workbench.desktop.main.js:276
Ust @ workbench.desktop.main.js:276
Ee @ workbench.desktop.main.js:276
JE @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:276
_o @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:276
C6a @ workbench.desktop.main.js:276
Ust @ workbench.desktop.main.js:276
St @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:276
_o @ workbench.desktop.main.js:276
q @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:6135
b6a @ workbench.desktop.main.js:276
(anonymous) @ workbench.desktop.main.js:6135
(anonymous) @ workbench.desktop.main.js:441
a @ workbench.desktop.main.js:276
uz @ workbench.desktop.main.js:276
gP @ workbench.desktop.main.js:276
D$n @ workbench.desktop.main.js:441
(anonymous) @ workbench.desktop.main.js:6135
invokeFunction @ workbench.desktop.main.js:7398
Bv @ workbench.desktop.main.js:6135
iAh @ workbench.desktop.main.js:2844
render @ workbench.desktop.main.js:2844
setInput @ workbench.desktop.main.js:2844
await in setInput
doSetInput @ workbench.desktop.main.js:784
doOpenEditor @ workbench.desktop.main.js:784
openEditor @ workbench.desktop.main.js:784
(anonymous) @ workbench.desktop.main.js:2260
doShowEditor @ workbench.desktop.main.js:2260
doOpenEditor @ workbench.desktop.main.js:2260
openEditor @ workbench.desktop.main.js:2260
openEditor @ workbench.desktop.main.js:6444
renderPopup @ workbench.desktop.main.js:8898
openPopup @ workbench.desktop.main.js:565
run @ workbench.desktop.main.js:2806
handler @ workbench.desktop.main.js:54
invokeFunction @ workbench.desktop.main.js:7398
(anonymous) @ workbench.desktop.main.js:7007
zor @ workbench.desktop.main.js:52
fq @ workbench.desktop.main.js:52
_tryExecuteCommand @ workbench.desktop.main.js:7007
executeCommand @ workbench.desktop.main.js:7007
accept @ workbench.desktop.main.js:2806
(anonymous) @ workbench.desktop.main.js:586
_deliver @ workbench.desktop.main.js:49
_deliverQueue @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
handleAccept @ workbench.desktop.main.js:4105
(anonymous) @ workbench.desktop.main.js:4105
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
(anonymous) @ workbench.desktop.main.js:7023
(anonymous) @ workbench.desktop.main.js:52
workbench.desktop.main.js:7073 [transport] Stream error reported from extension host ConnectError: [canceled] This operation was aborted
    at nsu.$endAiConnectTransportReportError (workbench.desktop.main.js:6409:408775)
    at rMo._doInvokeHandler (workbench.desktop.main.js:7026:21873)
    at rMo._invokeHandler (workbench.desktop.main.js:7026:21615)
    at rMo._receiveRequest (workbench.desktop.main.js:7026:20377)
    at rMo._receiveOneMessage (workbench.desktop.main.js:7026:19194)
    at jPt.value (workbench.desktop.main.js:7026:17286)
    at _e._deliver (workbench.desktop.main.js:49:2962)
    at _e.fire (workbench.desktop.main.js:49:3283)
    at Apt.fire (workbench.desktop.main.js:6394:12156)
    at MessagePort.<anonymous> (workbench.desktop.main.js:8973:18439) {arch: 'x64', platform: 'win32', channel: 'stable', client_version: '2.1.50', streamId: 'a759ec0a-5b00-495f-bc88-946af24db017', …}
error @ workbench.desktop.main.js:7073
$endAiConnectTransportReportError @ workbench.desktop.main.js:6409
_doInvokeHandler @ workbench.desktop.main.js:7026
_invokeHandler @ workbench.desktop.main.js:7026
_receiveRequest @ workbench.desktop.main.js:7026
_receiveOneMessage @ workbench.desktop.main.js:7026
(anonymous) @ workbench.desktop.main.js:7026
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:6394
(anonymous) @ workbench.desktop.main.js:8973
workbench.desktop.main.js:4095 [composer] Failed to get complete AI response
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:4095
workbench.desktop.main.js:7073 [composer] Chat incomplete or aborted {arch: 'x64', platform: 'win32', channel: 'stable', client_version: '2.1.50', requestId: '0e9a6643-59fe-4718-ae5b-4edd4f563c86', …}
_log @ workbench.desktop.main.js:7073
warn @ workbench.desktop.main.js:7073
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:4095

There are no permission notifications for edits and External-File Protection was enabled, but I disabled it and tried again and I am still getting the same issue.

Seems like a global issue with GPT-5.1 Codex tool call.

Doing some quick tests, I’ve found that GPT-5.1 does not have the write tool, instead it uses apply_patch.

This apply_patch tool is being called correctly but it gets stuck.

See screenshots below:


image

We are talking about it on discord rn :slight_smile:

1 Like

My recently failed Request IDs from GPT attempts (GPT-5.1)

4566a71b-9427-47f1-9674-9c835e48c8ab

50a7d8ee-b0ca-4468-a099-4427553cbf21

50a7d8ee-b0ca-4468-a099-4427553cbf21

Only log during the hang is:

WARN ToolCallEventService: Tracked tool call start - call_izKDyBgU7jJ3H7RUUTPRKrjO
ctc_0b4c78adf5d29a99016939abea4a1481978364f760d42e52b4 (apply_patch)

warn @ workbench.desktop.main.js:55
warn @ workbench.desktop.main.js:55
undefined ---- ---- ----
warn @ workbench.desktop.main.js:8929
undefined ---- ---- ----
trackToolCallStart @ workbench.desktop.main.js:2974
undefined ---- ---- ----
runStreamingTool @ workbench.desktop.main.js:3004
undefined ---- ---- ----
toolWrappedStream @ workbench.desktop.main.js:3004
undefined ---- ---- ----

Ran from terminal cursor --disable-extensions, issue persists in new cursor instance with no extensions.

External File Protection is enabled. No Windows permissions notifications shown.

1 Like

GPT Codex unusable, and it stuck on *** End patch

1 Like

Same issue here

>Model goes free

Suddenly comes into problems in the last 24 hours
Affects only that free model
:thinking:

2 Likes