Updated behavior, 2026-06-17.
For ZAI, BigModel, ZAPI, custom, and dynamic GLM-5.2-like models, and for every GLM dated temporary model, keep the high thought level visible and selectable, but default model switches into these models to max. The behavior must be consistent across frontend configOptions, model switching, workspace defaults, active task config, zcode-cli model capability, and provider request mapping.
glm-5.2, GLM-5.2, glm-5.2-pro, and provider-prefixed forms like zai/glm-5.2 are covered.glm- followed by digits, for example glm-0606[1m].max, high, and nothink, with max as the default.high to canonical reasoningEffort = "high", which the
AI SDK serializes as top-level reasoning_effort = "high".high to effort = "high" and thinking.type = "enabled" with a fixed budget lower than max.currentValue: "high" instead of normalizing it away.max when max is available.max when max is available.high; this rule only controls the automatic default.The frontend stores the thought-level options returned by the agent without a GLM-specific high filter. General normalization still applies: if the current value is missing from the available option list, the store falls back to the first legal option.
The zcode-cli reasoning metadata is the source of truth for runtime usage. GLM-5.2-like and GLM dated temporary model capability must include high; the providerOptions for high must be present so runtime model snapshots and session updates can pass the selected level through to the actual provider request.
When the toolbar receives authoritative configOptions after a successful model switch, the UI detects whether the selected model is GLM-5.2-like or a GLM dated temporary model. If so, and the returned thought-level option includes max, the toolbar updates the active task or workspace default thought level to max. This keeps runtime state aligned with the visible default instead of only changing local display state.
When creating or reading a draft session for a new task, the workspace prepare path performs the same detection after projecting the session settings to configOptions. If the draft model is GLM-5.2-like or a GLM dated temporary model and max is available, the prepare path uses max instead of replaying a previously stored high preference. The automatic max selection is not written back to the global last-thought localStorage preference.
setConfigOptions preserves high for built-in GLM-5.2 and providerless GLM dated temporary models.high to max.max over a stored high preference.max.max, high, and nothink, including generated OpenAI-compatible and Anthropic-compatible providerOptions.pnpm typecheck and pnpm lint.