From 91937a6dc3ffbbe2f3be91a500f0ecf962c4cf53 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 3 Aug 2026 15:16:15 -0700 Subject: [PATCH] test: swap context-switch-guard fixture off qwen3.8-max-preview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_custom_provider_context_avoids_false_shrink_warning used qwen3.8-max-preview as a slug that deliberately falls through to the generic 'qwen' 131K catalog match. The new qwen3.8-max DEFAULT_CONTEXT_LENGTHS entry (1M) now substring-matches the preview slug too, so the no-custom-providers branch stopped warning. Swap the fixture to qwen3.9-max-preview, which still hits the generic fallback — the test's intent (custom_providers threading) is unchanged. --- tests/hermes_cli/test_context_switch_guard.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/hermes_cli/test_context_switch_guard.py b/tests/hermes_cli/test_context_switch_guard.py index cfd2e80a9a9f9..65cfb4d83d24d 100644 --- a/tests/hermes_cli/test_context_switch_guard.py +++ b/tests/hermes_cli/test_context_switch_guard.py @@ -79,7 +79,7 @@ def test_custom_provider_context_avoids_false_shrink_warning(monkeypatch): "name": "qwen-token-plan", "base_url": "https://token-plan.example/compatible-mode/v1", "models": { - "qwen3.8-max-preview": {"context_length": 1_048_576}, + "qwen3.9-max-preview": {"context_length": 1_048_576}, }, } ] @@ -110,7 +110,7 @@ def test_custom_provider_context_avoids_false_shrink_warning(monkeypatch): ) result = ModelSwitchResult( success=True, - new_model="qwen3.8-max-preview", + new_model="qwen3.9-max-preview", target_provider="qwen-token-plan", provider_changed=True, api_key="k", @@ -131,7 +131,7 @@ def test_custom_provider_context_avoids_false_shrink_warning(monkeypatch): # Agent snapshot alone (classic CLI historically forgot to pass the kwarg). result2 = ModelSwitchResult( success=True, - new_model="qwen3.8-max-preview", + new_model="qwen3.9-max-preview", target_provider="qwen-token-plan", provider_changed=True, api_key="k", @@ -156,7 +156,7 @@ def test_custom_provider_context_avoids_false_shrink_warning(monkeypatch): ) result3 = ModelSwitchResult( success=True, - new_model="qwen3.8-max-preview", + new_model="qwen3.9-max-preview", target_provider="qwen-token-plan", provider_changed=True, api_key="k",