Bug
TestTencentTokenhubContextLength::test_hy3_preview_context_length fails on main:
FAILED tests/hermes_cli/test_tencent_tokenhub_provider.py::TestTencentTokenhubContextLength::test_hy3_preview_context_length
assert 262144 == 256000
Root Cause
OpenRouter's live API now reports hy3-preview with context_length: 262144 (up from the original 256000 when the model first launched on 2026-04-20).
get_model_context_length("hy3-preview") hits the OpenRouter metadata cache at step 6 in the resolution chain (before reaching the stale static fallback at step 8), so it returns 262144. The test assertion and the DEFAULT_CONTEXT_LENGTHS static table both have the old value.
Fix
Update both:
agent/model_metadata.py: "hy3-preview": 262144
tests/hermes_cli/test_tencent_tokenhub_provider.py: assert ctx == 262144
Bug
TestTencentTokenhubContextLength::test_hy3_preview_context_lengthfails on main:Root Cause
OpenRouter's live API now reports
hy3-previewwithcontext_length: 262144(up from the original 256000 when the model first launched on 2026-04-20).get_model_context_length("hy3-preview")hits the OpenRouter metadata cache at step 6 in the resolution chain (before reaching the stale static fallback at step 8), so it returns 262144. The test assertion and theDEFAULT_CONTEXT_LENGTHSstatic table both have the old value.Fix
Update both:
agent/model_metadata.py:"hy3-preview": 262144tests/hermes_cli/test_tencent_tokenhub_provider.py:assert ctx == 262144