Bug: Repeated /login prompts during active session (OAuth, macOS)
Resolved 💬 3 comments Opened Mar 25, 2026 by hs-moranlev Closed Mar 28, 2026
Bug: Repeated /login prompts during active session
Environment:
- Claude Code 2.1.81 (native install)
- macOS 26.3.1 (Darwin 25.3.0)
- Auth: OAuth (no API key, no env vars)
- Keychain:
Claude Code-credentialsentry exists
Behavior:
- During active sessions (2-4 hours), Claude Code repeatedly prompts to /login
- No clear trigger — happens during normal conversation, not correlated with sleep/lock
- Session involves heavy parallel agent usage (3-5 worktree agents running concurrently)
- After /login, works for a while, then prompts again
Diagnostics:
- /doctor: clean (no issues reported)
- No ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN env vars set
- No apiKeyHelper configured
- System clock is correct
- Keychain entry for
Claude Code-credentialsis present - No
.credentialsfile on disk (macOS uses Keychain)
Frequency: Multiple times per session (every 30-60 minutes approximately)
Reproduction:
- Start Claude Code with OAuth login
- Run a long session with multiple parallel worktree agents (3-5 concurrent)
- After ~30-60 minutes, Claude Code prompts for /login again
- /login succeeds, then the cycle repeats
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗