Custom OpenAI-compatible model disappears immediately after “Add” on Windows (works on Mac with same account)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Product / Version
Cursor IDE version: 3.1.14
OS: Windows 10 (10.0.19045)
Same account on Mac: works
What happens
In Settings > Models, when I add a custom model (Qwen via DashScope OpenAI-compatible API), clicking Add makes the model disappear immediately.
No usable saved model entry remains in Settings.

Expected
Model should persist in Settings after Add.

Steps to Reproduce

Open Settings > Models
Set:
OpenAI API Key: DashScope key
Override OpenAI Base URL: https://dashscope.aliyuncs.com/compatible-mode/v1
Add model id: qwen-plus
Click Add
Model disappears right away

Expected Behavior

Model should persist in Settings after Add.

Operating System

Windows 10/11

Version Information

Version: 3.1.14 (user setup)
VSCode Version: 1.105.1
Commit: d8673fb56ba50fda33ad78382000b519bb8acb70
Date: 2026-04-14T01:39:23.679Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.19045

For AI issues: which model did you use?

Qwen

Additional Information

Validation already done
API key is valid from terminal:
GET /compatible-mode/v1/models returns full model list including qwen-plus, qwen-plus-latest, etc.
Chat/completions endpoint also reachable.
Tried cache reset on Windows (globalStorage, workspaceStorage) and full restart/relogin.
Still reproduces on Windows.
Same account/config on Mac can add models successfully.
Why this seems like Cursor-side regression
Credentials and endpoint are valid (proven by direct API calls).
Cross-device behavior differs (Mac OK, Windows fails).
Looks like Windows-side custom model persistence/UI state issue.
Logs
Please inspect latest logs under: %APPDATA%\Cursor\logs
(especially latest window*/renderer.log and related workbench logs around the Add click time)

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the detailed report. Great work validating the API and doing cross-platform testing.

This is a known bug that was logged just yesterday, April 14. The issue is that after you click Add, it triggers a model refresh from the server, which removes custom models that aren’t in the Cursor catalog. The team is aware, and it’s currently in triage.

Unfortunately, there isn’t a working workaround yet. The only option for now is to use Mac, like you’re already doing. I’ll link your report to the ticket to help raise the priority.

Once there’s a fix, I’ll update here.

Hey @Yufei_Huang,
The issue with custom models not saving has been addressed and the fix should be available on the nightly release channel. If you’d like to try it out before it hits stable: open Cursor Settings > About and switch the Release Track to Nightly, then restart Cursor. Let me know if that resolves it!

Summary

After switching Cursor release track settings (to Nightly), adding DashScope/Qwen as a custom OpenAI-compatible model on Windows fails consistently.
When I add qwen-plus, Cursor shows:

Model name is not valid: "qwen-plus"

or the model disappears immediately after clicking Add.

Environment

  • Cursor (Windows): affected

  • OS: Windows 10 (10.0.19045)

  • Same account on macOS: works normally

  • Base URL used: https://dashscope.aliyuncs.com/compatible-mode/v1

  • Model ID tested: qwen-plus

What changed before issue

I changed release track settings to Nightly (per local settings workflow), then restarted Cursor.
After that, custom model add flow started failing on Windows.

Reproduction Steps (Windows)

  1. Open Settings > Models

  2. Set OpenAI API key (DashScope key)

  3. Enable override base URL and set: https://dashscope.aliyuncs.com/compatible-mode/v1

  4. Enter model name: qwen-plus

  5. Click Add

Actual Result

  • Error: Model name is not valid: "qwen-plus"
    and/or model entry disappears immediately after Add.

Expected Result

  • Model should be accepted and persist in Settings.

Validation already completed

  1. Provider/API is healthy

    • Direct terminal call to DashScope OpenAI-compatible GET /models succeeds.

    • Response includes qwen-plus, qwen-plus-latest, etc.

  2. Model ID is valid at provider side

    • qwen-plus is present in provider model list.
  3. Cross-device comparison

    • Same account + same provider config works on macOS.

    • Only Windows side is failing.

  4. Local cache cleanup attempts

    • Cleared/rebuilt parts of local Cursor user state (globalStorage, workspaceStorage) and restarted.

    • Issue persists.

  5. DevTools observation

    • Network mostly shows telemetry/events to Cursor endpoints (e.g. api3.cursor.sh with 202).

    • No clear successful provider validation request observed at Add click moment in failing path.

Technical Hypothesis

Likely a Windows-side regression in custom model validation/persistence flow (UI-side validation/state writeback), not a provider-side model-name issue.

Request for engineering

Please help verify:

  1. Which validation API is called when clicking Add Custom Model on Windows for OpenAI-compatible providers.

  2. Whether base URL override is actually applied in that validation step.

  3. Why valid provider models (confirmed via /models) are rejected as “Model name is not valid”.

  4. Whether Nightly track introduces a model-metadata/state regression on Windows.

Hey, thanks for testing on Nightly and reporting back, this really helps.

Looks like the persistence part is fixed now the model no longer disappears right after Add. But on Windows a separate model name validation layer is firing Model name is not valid: "qwen-plus". From the symptoms, this looks similar to another known case with BYOK and custom model names. I’ve forwarded it to the engineers as a follow-up to the original bug. I can’t share an ETA yet.

To confirm the diagnosis and speed this up, can you send:

  • The exact Nightly version Help > About or Cursor Settings > About build number and date
  • A screenshot or the text from DevTools Console at the moment you click Add Help > Toggle Developer Tools > Console. I need the requestId and the full errorDetailsDebug
  • The Network tab there as well the AvailableModels request and any validation request during Add, with status and full response body

On macOS, keep working as before, the flow isn’t broken there. Once I have an update on the Windows fix, I’ll reply in the thread.

Version: 3.1.17 (user setup)
VSCode Version: 1.105.1
Commit: fce1e9ab7844f9ea35793da01e634aa7e50bce90
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.19045

Dean Rie <[email protected]> 于2026年4月22日周三 15:53写道:

Hey, I can see the screenshot and the version. That’s Stable 3.1.17 with Release Track: Default, and the fix for the persistence issue is only in Nightly right now. It hasn’t reached Stable yet, so the symptoms will be the same.

Try switching back:

  1. Cursor Settings > Beta → Release Track: Nightly → restart Cursor
  2. Confirm the version in Help > About (it should be Nightly with a build date)

Also for the Windows error Model name is not valid: "qwen-plus" on Nightly, we need these details at the moment you click Add:

  • Console Help > Toggle Developer Tools > Console: the full error text, requestId, and errorDetailsDebug
  • Network: the AvailableModels request and any validation request at the moment of Add, including status, headers, and the full response body (not just rgstr or full_stripe_profile, that’s background telemetry and not related to validation)

Right now the screenshot only shows telemetry, so we can’t diagnose it from that.