OpenAI provider is failing!

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug


I use Cursor nearly daily and, starting Sunday 10/5, I’ve noticed the model beginning to write less intelligent code than usual: excessive typechecking “shortcuts”, obscure variable names, lack of comments, lack of readability, maintainability, and other code smells. So much so that the model would have trouble understanding its own code and building on top of it.

On 10/6 at about 8AM Pacific Time, the OpenAI provider failed several times. I prompted simple, explicit changes, and the model fails mid-way through its chain of thought. I have provided logs of the event. It says that there is a “potential listener leak detected” with 327 listeners already active.

Granted, this started to happen after I was very disgruntled with the results from a simple prompt that I restored from the first checkpoint. I realized this didn’t revert all the code, so I discarded all the changes via Git. I may have discarded those changes while the model was “planning next steps”. However, I opened another agent, and it was having the same issue: failure mid-way into the chain of thought.

I went to the “Ask Cursor” bot around the same time and the agent wasn’t responding there: https://i.gyazo.com/5c164c3b90bf597a716ddc59b41aa473.png

Steps to Reproduce

Prompt with GPT-5

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.36 (user setup)
VSCode Version: 1.99.3
Commit: 493c403e4a45c5f971d1c76cc74febd0968d57d0
Date: 2025-10-05T21:02:39.581Z
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?

GPT-5

For AI issues: add Request ID with privacy disabled

Request ID: 667d5bb0-f056-4244-bd84-b57880c8f975
{“error”:“ERROR_OPENAI”,“details”:{“title”:“Unable to reach the model provider”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:false}
ConnectError: [unavailable] Error
at IWl.$endAiConnectTransportReportError (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7347:371721)
at QAr._doInvokeHandler (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:35946)
at QAr._invokeHandler (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:35688)
at QAr._receiveRequest (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:34453)
at QAr._receiveOneMessage (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:33275)
at oEt.value (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:31369)
at _e._deliver (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at ldt.fire (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7332:12154)
at MessagePort. (vscode-file://vscode-app/c:/Users/X/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9392:18292)

Does this stop you from using Cursor

Yes - Cursor is unusable

Update: This stopped happening and hasn’t come back, but I’ll report back if it does
Updated to 1.7.38

Thanks for the info. Please let us know if it happens again.

1 Like

This just happened in version 1.7.38, whereas it was working perfectly this morning.

Request ID: 815b6986-6880-4f9a-8055-ceb7b781bbc8
{“error”:“ERROR_OPENAI”,“details”:{“title”:“Unable to reach the model provider”,“detail”:“We’re having trouble connecting to the model provider. This might be temporary - please try again in a moment.”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:false}
ConnectError: [unavailable] Error
at WWl.$endAiConnectTransportReportError (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7347:371721)
at rMr._doInvokeHandler (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:35946)
at rMr._invokeHandler (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:35688)
at rMr._receiveRequest (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:34453)
at rMr._receiveOneMessage (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:33275)
at lEt.value (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:489:31369)
at _e._deliver (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at udt.fire (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7332:12154)
at MessagePort. (vscode-file://vscode-app/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9400:18292)

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