# NousResearch/hermes-agent · OAuth refresh drops credential fields on macOS

## Open now

- 1 issue, 1 PR open on GitHub.
- #83338: \[Bug\]: OAuth refresh rewrites ~/.claude/.credentials.json and drops subscriptionType, downgrading Claude Code to API-key mode
- PR #83366: fix(oauth): preserve Claude Code credential keys on refresh

These issues and PRs concern a bug where OAuth token refresh overwrites credential storage (file and/or macOS Keychain) without preserving existing fields like subscriptionType, potentially degrading Claude Code to API-key mode. The members address detection of the problem and proposed fixes to credential handling during refresh.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #115690. Verify it addresses your case.
- **Recommended:** read PR #115690 (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: `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

- #83338: \[Bug\]: OAuth refresh rewrites ~/.claude/.credentials.json and drops subscriptionType, downgrading Claude Code to API-key mode

## Prior & competing PRs

- **#115690: macOS: a Hermes OAuth refresh no longer leaves Claude Code's Keychain holding a spent refresh token (#98334, salvage #109584)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/anthropic_credentials.py`, `agent/credential_pool.py`, `tests/agent/test_anthropic_borrowed_row_authority.py`, `tests/agent/test_anthropic_keychain.py`, `tests/agent/test_auxiliary_client.py`, `tests/conftest.py`
- **#83366: fix(oauth): preserve Claude Code credential keys on refresh**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/anthropic_adapter.py`, `tests/agent/test_anthropic_adapter.py`
- **#109584: fix(agent): mirror Claude Code OAuth refresh into the macOS Keychain (#98334)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `14a3463454`, `#115690`, `#98334`

## Fix status

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