# NousResearch/hermes-agent · Gateway drops context_length when URL in providers config

## Open now

- 1 issue, 2 PRs open on GitHub.
- #107606: \[Bug\]: model.context_length pin is dropped by the gateway status + hygiene paths when the provider URL lives in providers.<name>
- PR #107615: fix(gateway): keep model.context_length when the URL lives in providers.<name>
- PR #107660: fix(gateway): keep model.context_length when the provider URL lives in providers.<name>

A bug where model.context_length is not preserved by the gateway when the provider URL is configured under providers.<name>. The members include a bug report and two fix attempts addressing this specific data-loss issue.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. 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.67`: 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.

## Open related issues

- #107606: \[Bug\]: model.context_length pin is dropped by the gateway status + hygiene paths when the provider URL lives in providers.<name>

## Prior & competing PRs

- **#107615: fix(gateway): keep model.context_length when the URL lives in providers.<name>**. open
  - maintainer direction: category `stale_abandoned`; implication `active`
  - files: `gateway/run.py`, `gateway/run_turn_hygiene.py`, `tests/gateway/test_gateway_providers_context_pin.py`
- **#107660: fix(gateway): keep model.context_length when the provider URL lives in providers.<name>**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#107606`, `#107615`
  - files: `agent/agent_init.py`, `gateway/run.py`, `gateway/run_inbound.py`, `gateway/run_turn.py`, `gateway/slash_commands_model.py`, `hermes_cli/cli_model_switch_mixin.py`, `hermes_cli/context_switch_guard.py`, `hermes_cli/route_identity.py`, `tests/gateway/test_model_picker_persist.py`, `tests/gateway/test_session_hygiene.py`, `tests/gateway/test_session_info.py`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
