# NousResearch/hermes-agent · Gateway extra_body handling across primary and fallback provider routes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #136554: Gateway turn merge re-applies the primary route's extra_body to a cached agent that is still on its fallback provider
- PR #136564: fix(gateway): keep fallback extra_body on cached agents with gated re…
- PR #139367: fix(agent): track custom-provider extra_body ownership across routes and restore

These items concern how a cached gateway agent's extra_body is handled when it is on a fallback provider versus the primary route, including a report of the primary route's extra_body being re-applied during turn merge. Two members appear to be fix proposals touching gateway and agent code, one mentioning ownership tracking across routes and restore; their outcomes are not stated in the titles.

## 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

- #136554: Gateway turn merge re-applies the primary route's extra_body to a cached agent that is still on its fallback provider

## Prior & competing PRs

- **#136564: fix(gateway): keep fallback extra_body on cached agents with gated re…**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `gateway/run_turn_runner.py`, `tests/agent/test_provider_fallback.py`
- **#139367: fix(agent): track custom-provider extra_body ownership across routes and restore**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#87926`, `#68946`
  - files: `agent/agent_init.py`, `agent/agent_init_extra_body.py`, `agent/agent_runtime_helpers.py`, `agent/agent_runtime_helpers_switch_overrides.py`, `agent/chat_completion_helpers.py`, `gateway/run_turn_runner.py`, `hermes_cli/config_providers.py`, `tests/agent/test_lmstudio_custom_provider_extra_body.py`, `tests/agent/test_lmstudio_transport_spec.py`, `tests/agent/test_primary_extra_body_ownership.py`

## Fix status

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