I was trying to add the Minimax M2 API to Cursor, but the setup was silently failing with no visible error. After this, none of the models are working in chat or agent mode - responses don’t generate at all. This issue persists even after switching models, making both chat and agent mode unusable.
Hey, thanks for the report.
I’m seeing a similar issue with Minimax M2 from other users. To diagnose this, I’ll need a bit more info:
- What Cursor version are you on? (Help > About)
- Do the built-in Cursor models work without your API key?
- Open Developer Tools (Help > Toggle Developer Tools), go to the Console tab, try sending a request in chat, and share any errors you see there.
Temporary workaround:
- Cursor Settings > Models > disable the Minimax API key
- Restart Cursor
- Check if the default models work again
Let me know what you find.
- Cursor version: Version: 2.2.43 (Universal)
- The built in models used to work without my API keys before but after entering the Minimax API key now nothing is working
- 3.errors in console:
workbench.desktop.main.js:542 This document requires ‘TrustedScript’ assignment.
workbench.desktop.main.js:542 The JavaScript Function constructor does not accept TrustedString arguments. See Trusted Types for function constructor · w3c/trusted-types Wiki · GitHub for more information.
workbench.desktop.main.js:139 Refused to create a TrustedTypePolicy named ‘tokenizeToString’ because a policy with that name already exists and the Content Security Policy directive does not ‘allow-duplicates’: “trusted-types amdLoader
cellRendererEditorText
defaultWorkerFactory
diffEditorWidget
diffReview
domLineBreaksComputer
dompurify
editorGhostText
editorViewLayer
notebookRenderer
stickyScrollViewLayer
tokenizeToString
safeInnerHtml
editorCppGhostText
standaloneColorizer
tokenizeToString
solidjs
aibubble
aibubble2
aibubbleSearch
streamingMarkdownPolicy
notebookChatEditController
mermaidDiagram
mermaidDiagram2
mermaidDiagramOuter”.
workbench.desktop.main.js:23 Uncaught Error: Failed to execute ‘createPolicy’ on ‘TrustedTypePolicyFactory’: Policy with name “tokenizeToString” already exists.
TypeError: Policy with name “tokenizeToString” already exists.
at SQ (workbench.desktop.main.js:139:11057)
at workbench.desktop.main.js:12033:49688
at SQ (workbench.desktop.main.js:139:11057)
at workbench.desktop.main.js:12033:49688
at workbench.desktop.main.js:25:12
Really apppreciate your prompt response, the workaround worked but still the main issue of not able to use Minimax M2 is unresolved, would really appreciate your help, thanks!
Thanks for the details. Glad the temporary workaround helped restore the built-in models.
It’s worth noting that Cursor officially supports only OpenAI, Anthropic, Google, Azure, and AWS Bedrock. Other OpenAI-compatible providers (including Minimax) may be unstable or break features, like in your case.
For now, I’d recommend using an officially supported provider for more stable performance.
This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.