Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When sending a prompt in Plan Mode using Azure OpenAI (GPT-5), Cursor fails the request and surfaces an ERROR_OPENAI with a 400 response from the provider. The error states that a required parameter is missing: tools[10].custom. This started a few hours ago and was working previously with the same setup. It looks like Cursor is assembling a tools array with a gap/invalid shape for one of the tool entries.
Steps to Reproduce
- Open Cursor and switch to Plan Mode.
- Set provider to Azure OpenAI and select a GPT-5 deployment.
- Send any prompt (no special tools required).
- Observe the error toast/log.
Expected Behavior
Cursor should successfully send the request to the provider (Azure OpenAI GPT-5) without referencing a non-existent tool index or missing custom fields, and return the model’s response in Plan Mode.
Actual Behavior
Request fails with provider 400 and Cursor shows ERROR_OPENAI. The provider complains about a missing parameter in the tools payload: tools[10].custom.
Environment
- OS: macOS (Cursor.app path indicates macOS; Apple Silicon)
- Cursor: latest stable (please pull from my account if needed)
- Mode: Plan Mode
- Provider: Azure OpenAI
- Model/Deployment: GPT-5 (Azure deployment)
- Started: a few hours ago; previously working with the same config
Additional Context / Logs
Request ID: 6986d7c8-387c-458c-bf3b-a28999d20a2d
Raw error surfaced by Cursor:
{“error”:“ERROR_OPENAI”,“details”:{“title”:“Unable to reach the model provider”,“detail”:“We encountered an issue when using your API key: Provider was unable to process your request\n\nAPI Error:\n\n\nRequest failed with status code 400: {\n \"error\": {\n \"message\": \"Missing required parameter: 'tools[10].custom'.\",\n \"type\": \"invalid_request_error\",\n \"param\": \"tools[10].custom\",\n \"code\": \"missing_required_parameter\"\n }\n}\n”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
Stack trace (from devtools/console):
ConnectError: [invalid_argument] Error at Tqc.$endAiConnectTransportReportError (…/workbench.desktop.main.js:7337:399337)
at nwo._doInvokeHandler (…/workbench.desktop.main.js:490:36007)
at nwo._invokeHandler (…/workbench.desktop.main.js:490:35749)
at nwo._receiveRequest (…/workbench.desktop.main.js:490:34514)
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.0.34
VSCode Version: 1.99.3
Commit: 45fd70f3fe72037444ba35c9e51ce86a1977ac10
Date: 2025-10-29T06:51:29.202Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0
For AI issues: which model did you use?
GPT 5
For AI issues: add Request ID with privacy disabled
Request ID: 6986d7c8-387c-458c-bf3b-a28999d20a2d
{“error”:“ERROR_OPENAI”,“details”:{“title”:“Unable to reach the model provider”,“detail”:“We encountered an issue when using your API key: Provider was unable to process your request\n\nAPI Error:\n\n\nRequest failed with status code 400: {\n \"error\": {\n \"message\": \"Missing required parameter: 'tools[10].custom'.\",\n \"type\": \"invalid_request_error\",\n \"param\": \"tools[10].custom\",\n \"code\": \"missing_required_parameter\"\n }\n}\n”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
Does this stop you from using Cursor
Yes - Cursor is unusable