# NousResearch/hermes-agent · Gateway session, api_mode, and credential pool correctness

## Open now

- 2 issues, 2 PRs open on GitHub.
- #16000: \[Bug\]: stale session override api_mode can misroute custom /v1 image turns to anthropic_messages
- #64271: Gateway sessions need a public credential-pool rebind path after auth switch
- PR #16003: fix(agent): preserve direct image blocks and correct stale session api_mode
- PR #65180: fix(gateway): rebind selected session credentials

A cluster of fixes addressing stale session state in the gateway, including credential pool rebinding after auth or provider switches, api_mode misrouting on model changes, and agent cache eviction on /model switch.

## TL;DR

- 4 member(s): 2 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_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.39`: 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

- #16000: \[Bug\]: stale session override api_mode can misroute custom /v1 image turns to anthropic_messages
- #64271: Gateway sessions need a public credential-pool rebind path after auth switch

## Prior & competing PRs

- **#16003: fix(agent): preserve direct image blocks and correct stale session api_mode**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `gateway/run.py`, `run_agent.py`, `tests/gateway/test_session_model_reset.py`, `tests/run_agent/test_run_agent.py`
- **#65180: fix(gateway): rebind selected session credentials**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `bbc66e3da137`, `#65180`, `#64271`, `#65180`, `#65180`, `#65180`, `#374151`, `#64271`, `#65180`
  - files: `gateway/run.py`, `hermes_cli/plugins.py`, `tests/gateway/test_session_credential_rebind.py`, `website/docs/developer-guide/plugins/index.md`

## Fix status

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