From d396dcc1ef6d1f16a99b04bcad5f411b80f567b9 Mon Sep 17 00:00:00 2001 From: oyi77 Date: Tue, 25 Aug 2026 04:07:38 -0300 Subject: [PATCH] test(chatcore): reconcile #7533 expectation with declared opencode-go tiers glm-5.2 on opencode-go ships only -high/-max variants (providerRegistry), so the nearest-tier capability clamp (#11295/#11305) legitimately upgrades unsupported 'low'. No-mutation guarantee still holds for declared tiers (z.ai cases). Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --- tests/unit/chatcore-upstream-body.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/chatcore-upstream-body.test.ts b/tests/unit/chatcore-upstream-body.test.ts index 2f1fe135a9..163196ae72 100644 --- a/tests/unit/chatcore-upstream-body.test.ts +++ b/tests/unit/chatcore-upstream-body.test.ts @@ -179,7 +179,12 @@ test("Codex Responses routing keeps reasoning effort while dropping GPT-only ver credentials: null, }); - assert.equal(outbound.reasoning_effort, "low"); + // #11409 reconciliation: opencode-go advertises ONLY glm-5.2-high/-max variants + // (providerRegistry go/index.ts), so the #11295/#11305 nearest-tier capability + // clamp legitimately upgrades the unsupported "low" request to the smallest + // declared tier ("high"). The #7533 no-mutation guarantee still holds for any + // tier the resolved target actually declares (covered by the z.ai/Claude cases). + assert.equal(outbound.reasoning_effort, "high"); assert.equal(outbound.verbosity, undefined); });