[Bug] Network interruptions can lead to false positive OAuth token expiration errors and a degraded application state
Status Open
Reported on v2.1.226
Maintainer reply None cached
Activity 0 comments · opened Aug 10, 2026
Disrupted network connections can put Claude Code into a broken state where it thinks that OAuth
access token has expired, and any further commands entered results in claude code reporting:
Please run /login · API Error: 401 OAuth access token has expired. Re-authenticate to continue.".. Closing the session and re-opening it fixes the issue.
Closing the session and re-opening claude code fixes the issue.
This has happened multiple times, always during transient network outages.
I checked for related issues and found others reporting problems with unexpected "API Error: 401.."
errors, but none appeared to report the association with network issues.
Environment Info
- Platform: linux
- Terminal: kitty
- Version: 2.1.226
- Feedback ID: c2401257-1f43-4a67-a5d9-869b11f91888