# NousResearch/hermes-agent · hy3-preview context length metadata correction to 262144

## Open now

- 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.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #22805. Verify it addresses your case.
- **Recommended:** read PR #22805 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-22805`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member 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.

## Closed / duplicate issues

- #22268: fix(metadata): hy3-preview context length test fails (256000 vs 262144)

## Prior & competing PRs

- **#22805: fix(model-metadata): align hy3-preview static fallback + delete change-detector test (salvage #22574)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/model_metadata.py`, `tests/hermes_cli/test_tencent_tokenhub_provider.py`
  - fix hunks:
  - `agent/model_metadata.py`

    ```diff
    @@ -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`

    ```diff
    @@ -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}"
     
     
     # =============================================================================
    ```
- **#22270: fix(metadata): update hy3-preview context length to 262144**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `1c9ffb177c378bba24ef208ba8f551722961c655`, `#22805`
- **#22392: fix(metadata): bump hy3-preview static context length to 262144**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#22574`, `#22268`, `#22574`, `#22574`
- **#22574: fix(model-metadata): align hy3-preview static context length with OpenRouter (#22268)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#22805`

## Fix status

- Merged to main in PR #22805 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-05-09`.
- Subsystem: `agent`
