# NousResearch/hermes-agent · Ollama num_ctx clamp wrongly applied to cloud providers

## Open now

- 1 issue, 4 PRs open on GitHub.
- #99943: Compressor context window clamped to model.ollama_num_ctx on cloud providers — 1M window silently drops to 65,536
- PR #99953: fix(agent): gate Ollama num_ctx compressor clamp on local endpoints (#99943)
- PR #104725: fix(ollama): don't apply ollama_num_ctx clamp to non-Ollama runtimes
- PR #106756: fix(agent): ignore Ollama num_ctx override on remote endpoints
- PR #113832: fix(agent): ignore leftover ollama_num_ctx on cloud sessions (#99943)

A bug caused the Ollama-specific context window clamp (ollama_num_ctx) to be incorrectly applied to non-Ollama or remote/cloud endpoints, silently reducing large context windows. Multiple fixes were proposed to gate this behavior to local Ollama runtimes only.

## TL;DR

- 5 member(s): 1 open issue(s), 0 closed issue(s), 4 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.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.

## Open related issues

- #99943: Compressor context window clamped to model.ollama_num_ctx on cloud providers — 1M window silently drops to 65,536

## Prior & competing PRs

- **#99953: fix(agent): gate Ollama num_ctx compressor clamp on local endpoints (#99943)**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#101525`
  - files: `agent/agent_init.py`, `tests/test_ollama_num_ctx.py`
- **#104725: fix(ollama): don't apply ollama_num_ctx clamp to non-Ollama runtimes**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#99953`, `#99943`, `#99953`, `#99953`
  - files: `agent/agent_init.py`, `tests/agent/test_configure_ollama_num_ctx.py`
- **#106756: fix(agent): ignore Ollama num_ctx override on remote endpoints**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#113832`, `#99943`
  - files: `agent/agent_init.py`, `tests/test_ollama_num_ctx.py`
- **#113832: fix(agent): ignore leftover ollama_num_ctx on cloud sessions (#99943)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `d9f0a399a0`, `e948e10d4c`, `#99943`, `#99943`, `#99953`, `#104725`, `#99953`, `#99943`
  - files: `agent/agent_init.py`, `tests/agent/test_ollama_num_ctx.py`

## Fix status

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