fix(coding-agent): preserve custom fallback thinking

closes #5552
This commit is contained in:
Armin Ronacher
2026-06-12 17:26:42 +02:00
parent be7d5cf585
commit 1fc80f4f6c
3 changed files with 10 additions and 2 deletions

View File

@@ -403,6 +403,7 @@ describe("resolveCliModel", () => {
expect(result.model?.provider).toBe("neuralwatt");
// The :high suffix must NOT leak into the model id sent to the API
expect(result.model?.id).toBe("zai-org/GLM-5.1-FP8");
expect(result.model?.reasoning).toBe(true);
expect(result.thinkingLevel).toBe("high");
});