# NousResearch/hermes-agent · LM Studio context_length handling in custom providers

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #36852: fix(custom_providers): resolve per-model context_length for publisher/slug model ids

These items all concern how context length is determined for LM Studio models, including per-model context_length for publisher/slug ids and honoring the applied runtime context. One member is a bug report describing a regression to 64K in 0.14.0; the others are fix-titled changes, and their outcomes are not stated here.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #73578. Verify it addresses your case.
- **Recommended:** read PR #73578 (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-73578`. 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.

## Closed / duplicate issues

- #30178: \[Bug\]: LM Studio custom_providers per-model context_length broken in 0.14.0 — regressed to 64K

## Prior & competing PRs

- **#73578: fix(lmstudio): respect applied runtime context (salvage of #52188)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_init.py`, `agent/agent_runtime_helpers.py`, `contributors/emails/[redacted:email]`, `hermes_cli/models.py`, `run_agent.py`, `tests/hermes_cli/test_lmstudio_context_policy.py`, `tests/hermes_cli/test_urllib_security.py`, `tests/run_agent/test_lmstudio_load_mode.py`, `tests/run_agent/test_switch_model_context.py`, `website/docs/integrations/providers.md`
- **#36852: fix(custom_providers): resolve per-model context_length for publisher/slug model ids**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `265ac7d812192d3b6f11888811512604681d3a32`
  - files: `agent/agent_init.py`, `gateway/run.py`, `hermes_cli/config.py`, `tests/gateway/test_context_expansion_custom_provider.py`, `tests/gateway/test_session_hygiene.py`, `tests/gateway/test_session_info.py`, `tests/hermes_cli/test_custom_provider_context_length.py`, `tests/run_agent/test_compression_feasibility.py`, `tests/run_agent/test_invalid_context_length_warning.py`
- **#52188: fix(lmstudio): respect applied runtime context**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`

## Fix status

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