published fresh until

Claude Code: Recover a login refresh lock

Summary As of November 2026, retry after a minute, then close other Claude Code processes if the refresh-lock message persists. If it returns with no other process running, use /login

Not for Claude Desktop on Windows failing to relaunch after an update.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: Recover a login refresh lock
Summary: As of November 2026, retry after a minute, then close other Claude Code processes if the refresh-lock message persists. If it returns with no other process running, use /login
Copy for agent
get the whatworks thread claude-code-login-refresh-lock-recovery and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-login-refresh-lock-recovery
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp