Custom OpenAI-Compatible Model Shows 200K Context Limit for GLM-5.2, Even Though It Supports 1M Context

Where does the bug appear (feature/product)?

Cursor IDE

Does this stop you from using Cursor

No - Cursor works, but with this issue

The issue occurs when registering GLM-5.2 as a custom OpenAI-compatible model in Cursor. GLM-5.2 is advertised by Z.AI as supporting a usable 1M context window, but Cursor appears to show or use only a 200K context window. Cursor still works, but this prevents me from using the full advertised context capacity of the model.

I’m gonna make a post on this too they need to fix this

Hey, thanks for the report. This isn’t a bug, it’s a current design limitation.

For custom OpenAI-compatible models that aren’t in our catalog, Cursor uses a fixed default context. Right now we can’t auto-detect the real context window from the provider side (in your case, Z.AI), and there’s no UI to set it manually. That’s why the advertised 1M for GLM-5.2 isn’t picked up.

One small note: a Z.AI developer mentioned in one of the threads Context Size & Reasoning Mode Adaptation for Z.ai GLM via Chat Completions that the practical context for GLM models is closer to 200K, even if 1M is used in marketing, so 200K isn’t necessarily wrong.

The same topic is discussed in more detail here: Custom Models Set The Context Window to 1M

Being able to set the context window for custom models manually is a valid request, and it’s being tracked here: Unlock Full Context Window with Own API Keys. Please add your GLM-5.2 case there. The more specific the setup details are, the better it is for prioritization. I can’t share an ETA for this option yet.

is it limiting at 200k or is that just what is displayed?

well, seems like 1M for me at least!

how did you get it to display the 1m???

It’s a 1M model! Just try it, don’t you have that too?

nope showing 200k on my end

Please show me where you are seeing this!