Files
hermes-agent/contributors/emails/jean.spector@gmail.com
Teknium cafb46b035 fix(gateway): a session /model Codex route follows an account switch on any managed host
Review-fix on the salvaged #139264 commit:

- the managed-OAuth gate compared the override's base_url only against the registry
  default; a Codex/xAI install routed through HERMES_CODEX_BASE_URL / HERMES_XAI_BASE_URL
  stayed on the frozen switch-time bearer (live probe: A, A, A after auth.json moved to B)
- when the auth store cannot vouch for a bearer (logged out, host/provider mismatch), keep
  the session's route with its last-known credential instead of silently moving the
  session to the default provider (main's behaviour for a keyed override)
- _record_model_switch tolerates switch results without resolved_via_alias

Fixes #136685
2026-11-09 09:16:32 -08:00

2 lines
12 B
Plaintext