# NousResearch/hermes-agent · LM Studio context length and model loading issues

## Open now

- 1 issue, 0 PRs open on GitHub.
- #25989: \[Bug\]: \`lmstudio\` provider pre-loads models manually, bypassing JIT and trampling user context config

These issues and fixes address LM Studio provider bugs around incorrect context length detection, bypassing JIT loading, and models remaining loaded indefinitely. Changes include overhauling context resolution logic and fixing how models are preloaded and unloaded.

## TL;DR

- 4 member(s): 1 open issue(s), 2 closed issue(s), 0 open PR(s), 0 merged PR(s), 1 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_PARTIAL`): 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 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

- #25989: \[Bug\]: \`lmstudio\` provider pre-loads models manually, bypassing JIT and trampling user context config

## Closed / duplicate issues

- #66572: \[Bug\]: Hermes Agent always uses exactly 64000 tokens when INITIALIZING LM Studio model, ignoring configured context length
- #67015: LM Studio JIT not used, Hermes leaves LM Studio models loaded indefinitely preventing loading of other models for later scheduled tasks

## Prior & competing PRs

- **#48884: fix(lmstudio): use detected context for runtime preload when no override is set**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#52188`, `#45037`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._

## Fix status

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