OAuth session dropped repeatedly (subscription auth, WSL2) — latest logout coincided with auto-update 2.1.197 -> 2.1.206 mid-session
Environment: Claude Code 2.1.206 (auto-updated from 2.1.197 mid-day today), WSL2 (Ubuntu on Windows), subscription (Max plan) OAuth auth.
Issue: The CLI logs the user out and requires /login repeatedly — multiple times per week on this machine. Today's occurrence is well-evidenced:
- Session running since morning on 2.1.197 (long-lived interactive session).
- Mid-day the CLI auto-updated to 2.1.206.
- Shortly after, API calls in the session failed until
/loginwas run (~/.claude/.credentials.jsonrecreated at 15:37 local, mtime evidence).
Pattern: logouts appear to correlate with auto-update events, though it happens "too often" generally (multiple times/week), prior versions affected too.
Expected: the OAuth refresh token should survive CLI auto-updates and multi-day sessions without forcing interactive re-login.
Impact: long-running orchestration sessions (background agents, watchers) silently lose auth mid-flight; work stalls until a human notices and re-logs.
Happy to provide diagnostics — tell me what to capture on the next occurrence (we now record claude --version + credentials mtime each time).