Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

fix: never ask a GLM model to stop thinking

Jack Rudenko974de4a0457d
diff --git a/ai-docs/reports/BACKEND_zero_prices_models_index-20260921.md b/ai-docs/reports/BACKEND_zero_prices_models_index-20260921.md
index 1db10149..e847f193 100644
--- a/ai-docs/reports/BACKEND_zero_prices_models_index-20260921.md
+++ b/ai-docs/reports/BACKEND_zero_prices_models_index-20260921.md
@@ -105,6 +105,29 @@ One more, ours rather than yours, recorded so the census is complete: `anthropic
connections) binds to a claudish provider name that has no definition, so we cannot execute it
today. That is our gap to close, not a defect in your data.
+## `glm-5.3` is published with a thinking toggle it does not have
+
+Found while verifying our v10 release. The catalog gives `glm-5.3` a reasoning capability whose
+`control` reads as a toggle, so claudish offered the off-switch. Z.ai refuses it. Measured against
+`api.z.ai` on 2026-09-22 with `glm-5.3`:
+
+```
+{"thinking":{"type":"disabled"}} -> 400 code 1210
+ "This model always engages in thinking and cannot be disabled;
+ please use low, high, or max"
+{"thinking":{"type":"enabled"},"reasoning_effort":"low"} -> 200
+```
+
+So the model's real control is an effort level with no "off", and the advertised levels are
+`low`, `high`, `max`. The Flash variants (`glm-5.3-flash`, and the one `glm-coding` picks) still
+accept `disabled`, so this is per-model rather than family-wide — which is exactly the kind of
+distinction only the catalog can carry.
+
+We have worked around it in our probe, and that workaround is ours to delete once the capability
+is right. What would fix it properly on your side is publishing, for a model that cannot stop
+reasoning, a control that has no disabled state — we read `reasoning.control` and
+`reasoning.efforts` and will follow whatever they say.
+
## Nothing else outstanding from our side
The two design answers we sent still stand: unknown modalities as an absent field are right for
diff --git a/package.json b/package.json
index 1a5daba3..2773a8ed 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claudish-monorepo",
- "version": "10.0.0",
+ "version": "10.0.1",
"private": true,
"description": "Monorepo for Claudish - Run Claude Code with any model",
"type": "module",
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 1dceb208..26b8335b 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "claudish",
- "version": "10.0.0",
+ "version": "10.0.1",
"description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
"type": "module",
"main": "./dist/index.js",
diff --git a/packages/cli/src/providers/probe-live-provider-effort.test.ts b/packages/cli/src/providers/probe-live-provider-effort.test.ts
index c6cfc070..50e8cdec 100644
--- a/packages/cli/src/providers/probe-live-provider-effort.test.ts
+++ b/packages/cli/src/providers/probe-live-provider-effort.test.ts
@@ -68,6 +68,29 @@ describe("probe effort per provider", () => {
expect((await captureProbeBody("native-anthropic")).output_config?.effort).toBe("low");
});
+ for (const provider of ["glm", "z-ai", "glm-coding"]) {
+ test(`${provider} never asks GLM to stop thinking`, async () => {
+ const effort = (await captureProbeBody(provider)).output_config?.effort;
+
+ expect(effort).toBe("low");
+ expect(effort).not.toBe("minimal");
+ });
+ }
+
+ test("Google never receives unsupported minimal effort", async () => {
+ const effort = (await captureProbeBody("google")).output_config?.effort;
+
+ expect(effort).toBe("low");
+ expect(effort).not.toBe("minimal");
+ });
+
+ test("Alibaba PAYG never receives unsupported minimal effort", async () => {
+ const effort = (await captureProbeBody("qwen-payg")).output_config?.effort;
+
+ expect(effort).toBe("low");
+ expect(effort).not.toBe("minimal");
+ });
+
test("OpenAI uses minimal effort", async () => {
expect((await captureProbeBody("openai")).output_config?.effort).toBe("minimal");
});
diff --git a/packages/cli/src/providers/probe-live.ts b/packages/cli/src/providers/probe-live.ts
index ae467ef6..98b0abff 100644
--- a/packages/cli/src/providers/probe-live.ts
+++ b/packages/cli/src/providers/probe-live.ts
@@ -130,12 +130,34 @@ export interface ProbeLinkInput {
* dashscope-intl with qwen3.8-max-0902). Its sibling products do not: the Token
* Plan host accepts "minimal" on the same round of measurements, so this is one
* product's host, not a vendor-wide rule.
+ *
+ * The three Z.ai products (`glm`, `z-ai`, `glm-coding` — one endpoint, three key
+ * silos) are here for a DIFFERENT reason, and it is worth stating because the
+ * remedy looks the same while the cause is not. Z.ai accepts the word "minimal"
+ * perfectly well; what it refuses is the REQUEST that word produces. The GLM
+ * dialect maps "minimal" to `thinking: {type: "disabled"}`, and GLM-5.3 cannot
+ * be told to stop thinking. Measured 2026-09-22 against api.z.ai with glm-5.3:
+ *
+ * {"thinking":{"type":"disabled"}} -> 400 code 1210
+ * "This model always engages in thinking and cannot be disabled;
+ * please use low, high, or max"
+ * {"thinking":{"type":"enabled"},"reasoning_effort":"low"} -> 200
+ *
+ * Only `glm` failed Test All, because its probe pick discovers `glm-5.3` while
+ * `z-ai` and `glm-coding` pick the Flash variants, which still accept the
+ * off-switch. All three are listed anyway: the constraint belongs to the GLM
+ * family on this endpoint, not to whichever model discovery happens to rank
+ * first today, and pinning only the one that broke would make the next pick a
+ * new bug.
*/
const MINIMAL_EFFORT_UNSUPPORTED = new Set([
"native-anthropic",
"anthropic",
"google",
"qwen-payg",
+ "glm",
+ "z-ai",
+ "glm-coding",
]);
/**
diff --git a/packages/cli/src/version.ts b/packages/cli/src/version.ts
index 680e1b59..fe19e771 100644
--- a/packages/cli/src/version.ts
+++ b/packages/cli/src/version.ts
@@ -1,2 +1,2 @@
// Auto-generated by scripts/generate-version.ts — do not edit
-export const VERSION = "10.0.0";
+export const VERSION = "10.0.1";