# NousResearch/hermes-agent · Guard llama.cpp props endpoint n_ctx fallback logic

## Open now

- 1 issue, 2 PRs open on GitHub.
- #108638: \[Bug\]: _apply_llamacpp_props never falls back to /props when /v1/props returns 200 with a non-props payload — allocated n_ctx is silently discarded
- PR #108646: fix(model): validate llama.cpp props fallback payloads
- PR #109835: fix(model_metadata): guard _apply_llamacpp_props against missing n_ctx payload

These issues and fixes address a bug where _apply_llamacpp_props fails to fall back to /props when /v1/props returns a 200 response lacking n_ctx, causing the value to be silently discarded. The fixes add validation and fallback guards for the props payload.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 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_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: 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

- #108638: \[Bug\]: _apply_llamacpp_props never falls back to /props when /v1/props returns 200 with a non-props payload — allocated n_ctx is silently discarded

## Prior & competing PRs

- **#108646: fix(model): validate llama.cpp props fallback payloads**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `3ad042d68ede99503d26d15ae92bf26d8baee621`, `3eb7ed08d19da393196722d0b219b2ba1ec22810`, `#109379`, `#109835`, `#29825`, `#29825`
  - files: `agent/model_metadata.py`, `tests/agent/test_model_metadata.py`
- **#109379: fix(agent): fall back to /props when /v1/props lacks n_ctx and guard json (#108638)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#108646`, `#108638`, `#108646`
- **#109835: fix(model_metadata): guard _apply_llamacpp_props against missing n_ctx payload**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#108646`, `#108638`, `#109379`, `#108646`
  - files: `agent/model_metadata.py`

## Fix status

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