[BUG] Frequent mid-session 401 errors
Resolved 💬 3 comments Opened Apr 16, 2026 by eat-sleep-code Closed Apr 24, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
After recent update (within last week), getting frequent mid-session 401 errors in Claude Code in the desktop app (Windows 11).
Failed to authenticate. API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"Invalid authentication credentials"},"request_id":"req_011Ca7eMZaEWxrcefZLfmC8e"}
I have to close out of the app and restart it, which is disruptive to work flow. Prior to this I could remain logged in and active for days.
What Should Happen?
Claude Code should not log me out mid-session.
Error Messages/Logs
Steps to Reproduce
Use Claude Code in desktop (Windows 11), be inactive for any short period of time (30 minutes?) and come back to make a subsequent request.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.2773.0 (884b37)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗