# NousResearch/hermes-agent · Fix custom provider disambiguation by api_mode field

## Open now

- 1 issue, 2 PRs open on GitHub.
- #102725: \[Bug\]: same model + same base_url custom providers with different api_mode always heal to first entry (display vs runtime desync)
- PR #102749: fix(agent): disambiguate custom providers sharing base_url by api_mode (#102725)
- PR #135580: fix: preserve requested custom provider identity in session state

A bug where custom providers sharing the same base URL and model but differing by api_mode were incorrectly collapsed to the first entry, causing display and runtime desync. Fixes persist and apply api_mode to correctly distinguish such providers.

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

- #102725: \[Bug\]: same model + same base_url custom providers with different api_mode always heal to first entry (display vs runtime desync)

## Prior & competing PRs

- **#102748: fix(config): disambiguate same-URL/model custom providers by persisted api_mode**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#102749`
- **#102749: fix(agent): disambiguate custom providers sharing base_url by api_mode (#102725)**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#102748`, `#102725`
  - files: `cli.py`, `hermes_cli/runtime_provider.py`, `tests/cli/test_resume_model_restore.py`
- **#135580: fix: preserve requested custom provider identity in session state**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `71e449e63f9a7c9875c8dddf8c8feb9cd0dfd57a`
  - files: `agent/voice_turn_route.py`, `hermes_cli/runtime_provider_custom.py`, `tests/hermes_cli/test_canonical_custom_identity.py`, `tests/tui_gateway/test_custom_provider_session_persistence.py`, `tests/tui_gateway/test_local_model_session_identity.py`, `tui_gateway/server.py`, `website/docs/developer-guide/provider-runtime.md`

## Fix status

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