Claude Code Fixes Repeated macOS Sign-Outs and Sign-Out on Slow Token Refresh
Claude Code 2.1.329 fixes repeated sign-outs on macOS when it could read the Keychain but not save to it; that session now stops at expiry and says why, while other sessions stay signed in. In VS Code, a slow sign-in server no longer signs users out in every window and terminal.
Key Takeaways
- Keychain write failures no longer cause repeated sign-outs.
- Only the affected session stops, with an explanation.
- A write-check item tests Keychain renewal on macOS.
/tuirestarts wait for login refresh.- VS Code no longer signs out every window on a slow refresh.
~/.claude.jsonis no longer reset by a stalled save.
macOS Keychain
Claude Code could read the Keychain but not write to it, which led to repeated sign-outs. Now that session stops at expiry and says why, and other sessions stay signed in. macOS login renewal also now tests the Keychain with a Claude Code-write-check item.
Restarts and VS Code
/tui and other in-place restarts now wait briefly for a login refresh, so they are less likely to sign a user out. In the VS Code extension, a sign-in server that took 10 to 30 seconds to answer a token refresh signed users out of Claude Code in every window and terminal; that is fixed. ~/.claude.json is also no longer reset to defaults when a network stall or file lock made it unreadable during a save.