# NousResearch/hermes-agent · xAI OAuth token refresh fix for auxiliary client

## Open now

- Nothing open on GitHub.

These items address a bug where the auxiliary client fails to recover from expired or invalid xAI OAuth tokens (403 bad-credentials), unlike the main agent client which handles refresh correctly. The work involves identifying and patching the recovery gap in the auxiliary client path.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #113964. Verify it addresses your case.
- **Recommended:** read PR #113964 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-113964`. 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.

## Closed / duplicate issues

- #84845: xAI OAuth 403 bad-credentials on auxiliary_client.call_llm is not recovered (main agent refresh works)

## Prior & competing PRs

- **#113964: fix(aux): xAI OAuth auxiliary calls recover from an expired token instead of failing (#84845, salvage #112716)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/auxiliary_client.py`, `tests/agent/test_auxiliary_auto_route_xai_oauth_refresh.py`
- **#84862: fix(agent): recover auxiliary client from xai-oauth 403 bad-credentials**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `2ba6fcd750c`, `#113964`

## Fix status

- Merged to main in PR #113964 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-17`.
- Subsystem: `agent`
