NousResearch/hermes-agent

Context length fallback ignoring catalog on custom endpoints

Cluster 15563 · agent. Data as of

1 open item. Fix merged in #41651 on 8 Jun 2026. Check it covers your case.

The short answer

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

Most members describe the same issue: for models behind custom gateway or proxy base_urls, context length resolution falls back to a generic default (128K/256K) instead of consulting DEFAULT_CONTEXT_LENGTHS or config_context_length. One member is a broad batch of ten unrelated low-risk fixes that may only partly overlap with this theme.

Open issues1

  • Issue#15563get_model_context_length step 2 short-circuits to 128K default; resolve_display_context_length skips config_context_length

Open PRs0

No open pull requests.

Fixes on record

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

  • #41651 fix: batch salvage of 10 low-risk fixes (@islam666)

    merged to main

    files: agent/context_compressor.py, agent/image_routing.py, agent/model_metadata.py, gateway/platforms/weixin.py, hermes_cli/gateway.py, hermes_cli/profile_distribution.py, hermes_cli/profiles.py, hermes_cli/web_server.py, plugins/google_meet/meet_bot.py, plugins/model-providers/xiaomi/__init__.py, providers/base.py, run_agent.py, scripts/release.py, tests/agent/test_custom_providers_vision.py, tests/agent/test_model_metadata.py, tests/gateway/test_weixin_typing.py, tests/hermes_cli/test_profile_distribution.py, tests/hermes_cli/test_systemd_optional_directives.py, tests/hermes_cli/test_web_server.py, tests/run_agent/test_infinite_compaction_loop.py (+2 more)

3 PRs closed without merging

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

  • #15732 fix(context-length): fall through to catalog when endpoint probe misses; pass config_context_length to display resolver · done elsewhere
  • #38911 fix(model): use catalog fallback for proxied Anthropic contexts · done elsewhere → 2e61de0
  • #39198 fix(model_metadata): consult DEFAULT_CONTEXT_LENGTHS before 256K fallback on custom endpoints · merged via another change → #41651
Closed issues · 1
  • Closed#38865Context length falls back to 256K for Anthropic models behind a custom gateway base_url, ignoring the DEFAULT_CONTEXT_LENGTHS catalog
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.29: 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
#41651
Closed issues
1
Attempts
3 PRs closed without merging
Fix link checked
8 Jun 2026

For your agent

The same facts, typed.