{"repo":"NousResearch/hermes-agent","public_id":"83338","display_label":"OAuth refresh drops credential fields on macOS","summary":"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.","subsystem":"agent","counts":{"members":4,"open_issues":1,"open_issues_distinct":1,"open_prs":1,"closed_issues":0,"merged_prs":1,"attempt_prs":2},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":115690,"merged_at":"2026-09-19T05:55:24+00:00"},"resolution":{"state":"unresolved","by":null},"freshness":{"state":"verified","last_verified_at":"2026-09-19T05:55:24+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.5},"fix_edges":[{"issue_number":98334,"pr_number":115690,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-09-19T05:55:24+00:00"}],"members":[{"kind":"issue","number":83338,"title":"[Bug]: OAuth refresh rewrites ~/.claude/.credentials.json and drops subscriptionType, downgrading Claude Code to API-key mode","url":null,"state":"open"},{"kind":"pr","number":83366,"title":"fix(oauth): preserve Claude Code credential keys on refresh","url":null,"state":"open","close_reason":{"category":"uncategorized","implication":"needs_llm"},"merged":false},{"kind":"pr","number":109584,"title":"fix(agent): mirror Claude Code OAuth refresh into the macOS Keychain (#98334)","url":null,"state":"closed","close_reason":{"refs":[{"kind":"commit","value":"14a3463454","number":0},{"kind":"pr","value":"#115690","number":115690},{"kind":"pr","value":"#98334","number":98334}],"category":"merged_via","implication":"superseded"},"merged":false},{"kind":"pr","number":115690,"title":"macOS: a Hermes OAuth refresh no longer leaves Claude Code's Keychain holding a spent refresh token (#98334, salvage #109584)","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["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"]}],"trust":{"default_tier":"verified","includes_suggested":false}}