Forumics logo Forumics
Issue 01

Back to issue

All Claude Code known issues

CLAIM C206 Supported 2026-11-26

GitHub issue #24317 in anthropics/claude-code, opened 2026-02-09 by pfallonjensen, records a report that Claude Code 2.1.37 on macOS 15.7.1 requires re-authentication through the browser OAuth flow multiple times per day, even though a valid refresh token exists in `~/.claude/.credentials.json`. The report attributes this to an apparent race condition when multiple concurrent Claude Code sessions (7-12 active processes) attempt to refresh the same OAuth token, so one session's refresh invalidates the refresh token the other sessions still hold, and the affected sessions prompt for a full browser-based OAuth re-login.

Verbatim Excerpts from Cited Records
“Claude Code requires re-authentication (browser OAuth flow) multiple times per day, even though a valid refresh token exists in `~/.claude/.credentials.json`.”
— pfallonjensen · anthropics/claude-code (issue 24317 opening body, Description section) · 2026-02-09T03:13:29Z ·GitHub Issue ↗
“This appears to be caused by a race condition when multiple concurrent Claude Code sessions attempt to refresh the same OAuth token.”
— pfallonjensen · anthropics/claude-code (issue 24317 opening body, Description section) · 2026-02-09T03:13:29Z ·GitHub Issue ↗
“The refresh token should silently renew the access token without user interaction. Multiple concurrent sessions sharing the same credentials file should coordinate token refresh (e.g., file-based locking, or re-reading the credentials file before attempting refresh).”
— pfallonjensen · anthropics/claude-code (issue 24317 opening body, Expected Behavior section) · 2026-02-09T03:13:29Z ·GitHub Issue ↗
“Sessions frequently lose authentication and require a full browser-based OAuth re-login. This happens multiple times per day with several concurrent sessions open.”
— pfallonjensen · anthropics/claude-code (issue 24317 opening body, Actual Behavior section) · 2026-02-09T03:13:29Z ·GitHub Issue ↗
Counter-record: Issue closed 2026-05-07T15:28:02Z by bhosmer-ant with state_reason completed; no explanation comment accompanies the close and no fix commit is identified in the thread, so the close itself does not evidence a fix. On 2026-09-29 MaddyMurder asked for the issue to be re-opened ("Closed with no explanation makes no sense as this is still unfixed, and clearly a bug"), and vdavid agreed the same day that the issue is unresolved and should not be closed. The thread was auto-locked 2026-11-25T14:13:40Z by github-actions[bot] after 7 days without activity. 27 comments read in total. Several users confirmed the same symptoms on later versions (mieubrisse, schoukah, sasha-computer in 2026-02; garimto81 on Windows with 8 concurrent sessions; unwashedlugosi on macOS; ssj5037 on v2.1.97; kynbeen on Windows v2.1.258; mgajda on Linux v2.1.126), and LARIkoz (2026-03-22) reverse-engineered the v2.1.81 refresh flow and reported its lock retry budget is insufficient at 10+ concurrent processes. Workarounds discussed in the thread include `claude setup-token` with CLAUDE_CODE_OAUTH_TOKEN and CLAUDE_CODE_OAUTH_401_WAIT_MS; no maintainer response or merged fix appears in the surveyed thread. At filing, github-actions[bot] listed three possible duplicates (#22600, #13448, #3117) and said the issue would auto-close as a duplicate in 3 days unless contested; a user comment on 2026-02-10 prevented that, and the issue was not closed as a duplicate. The claim documents only the original report, not a verified current state. Precedent: closed-state issues have been published before when the close is not a fix, duplicate, or retraction, e.g. C178 (#11693, closed by linear-code[bot] stale), C131, C196. Falsification probe: If GitHub issue #24317 is deleted without archive, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn. Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by scripts/verify_claim_verbatim.py.