hy3-preview context length metadata correction to 262144

NousResearch/hermes-agent · cluster 22268 · agent

Data as of

Nothing open on GitHub. Fix merged in #22805. Check it covers your case.

The short answer

0open issues
0open PRs
5items grouped
Known?
Yes. 5 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #22805. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #22805. That is separate from the fix event.
Still open
Nothing open on GitHub.

Multiple fixes and adjustments to align the hy3-preview model's static context length value to 262144, including test updates and fallback corrections.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #22805 fix(model-metadata): align hy3-preview static fallback + delete change-detector test (salvage #22574)

    merged to main

    files: agent/model_metadata.py, tests/hermes_cli/test_tencent_tokenhub_provider.py

    Show the diff
    • agent/model_metadata.py
      @@ -210,8 +210,10 @@ def _strip_provider_prefix(model: str) -> str:
           "grok": 131072,             # catch-all (grok-beta, unknown grok-*)
           # Kimi
           "kimi": 262144,
      -    # Tencent — Hy3 Preview (Hunyuan) with 256K context window
      -    "hy3-preview": 256000,
      +    # Tencent — Hy3 Preview (Hunyuan) with 256K context window.
      +    # OpenRouter live metadata reports 262144 (256 × 1024); align the
      +    # static fallback so cache and offline both agree (issue #22268).
      +    "hy3-preview": 262144,
           # Nemotron — NVIDIA's open-weights series (128K context across all sizes)
           "nemotron": 131072,
           # Arcee
    • tests/hermes_cli/test_tencent_tokenhub_provider.py
      @@ -304,12 +304,20 @@ def test_infer_from_url(self):
       
       
       class TestTencentTokenhubContextLength:
      -    """hy3-preview context length is registered."""
      +    """hy3-preview has a context-length entry registered.
       
      -    def test_hy3_preview_context_length(self):
      +    Asserting the relationship (registered + ≥ 4096) instead of a
      +    specific value, per AGENTS.md "Don't write change-detector tests".
      +    The previous version of this class pinned an exact integer that
      +    broke whenever Tencent / OpenRouter bumped the published context
      +    window (#22268).
      +    """
      +
      +    def test_hy3_preview_has_registered_context_length(self):
               from agent.model_metadata import get_model_context_length
               ctx = get_model_context_length("hy3-preview")
      -        assert ctx == 256000
      +        assert isinstance(ctx, int)
      +        assert ctx >= 4096, f"hy3-preview context length looks unset/wrong: {ctx}"
       
       
       # =============================================================================

3 PRs closed without merging

From the close comments: done elsewhere 1 · duplicate 1 · merged via another change 1

  • #22270 fix(metadata): update hy3-preview context length to 262144 · done elsewhere → 1c9ffb1, #22805
  • #22392 fix(metadata): bump hy3-preview static context length to 262144 · duplicate → #22574, #22268
  • #22574 fix(model-metadata): align hy3-preview static context length with OpenRouter (#22268) · merged via another change → #22805
Closed issues · 1
  • Closed#22268fix(metadata): hy3-preview context length test fails (256000 vs 262144)
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.40: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#22805
Closed issues
1
Attempts
3 PRs closed without merging
Fix link checked
9 May 2026

For your agent

The same facts, typed.