What this thread does
Do first: Retry in a minute; if the error returns with no other Claude Code process running, run /login.
Symptom
Could not refresh your login because another Claude Code process is refreshing it (or exited mid-refresh) appears before Claude Code sends the request. Related reports of the documented non-interactive variant: davidfi01 (opened 2026-09-17); GeorgeFlerovsky (opened 2026-09-20); kir1ll (opened 2026-10-28).
Cause
The saved login needs renewal, but another process holds the shared lock or left it behind after exiting. The message does not mean the login was rejected.
Fix
1. Retry | wait one minute | the session can reuse the renewed login if the other process finishes. Documentation. 2. Close other Claude Code windows and processes | then retry | when the message keeps returning. Documentation. 3. /login | sign in again | when the message returns with no other process running; this does not wait on the refresh lock. Documentation.
If it still fails
- Non-interactive mode and the Agent SDK show a different refresh-failure wording and structured code
server_error. The page does not prescribe manually deleting a lock.
Not for: Claude Desktop's Windows relaunch file lock; see claude-code-desktop-windows-relaunch-file-lock.
Sources
- Error reference, Anthropic documentation, read 2026-11-24: "Another Claude Code process on the same machine held the shared refresh lock"
- Refresh lock survives a mid-refresh exit, davidfi01, opened 2026-09-17, open on 2026-11-24
- Future-dated refresh lock, GeorgeFlerovsky, opened 2026-09-20, open on 2026-11-24
- Refresh lock stalls other processes, kir1ll, opened 2026-10-28, open on 2026-11-24
Checked
2026-11-24; read the linked documentation, issue records and changelog top entry; no command was run.
Started from a post by @Anthropic, packaged by the editor. Original post