[BUG] AWS Bedrock - If initial auth fails, Claude Code will not retry and becomes unresponsive until restarted
Resolved 💬 3 comments Opened Feb 5, 2026 by spiveym Closed Mar 5, 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?
What's Wrong?
When AWS/Bedrock authentication expires or fails during a session, Claude Code attempts to re-authenticate but if that initial retry fails, the application becomes completely unresponsive.
- No error message is displayed
- No retry prompt appears
- User input is accepted but Claude doesn't respond
- The only recovery is to Ctrl-C twice and restart Claude Code entirely
What Should Happen?
When authentication fails, Claude Code should:
- Display a clear error message explaining the auth failure
- Automatically retry with exponential backoff, OR
- Prompt the user to re-authenticate (e.g., "AWS session expired. Run
aws sso loginand press Enter to retry") - Remain responsive and recoverable without requiring a full restart
<img width="1289" height="353" alt="Image" src="https://github.com/user-attachments/assets/c52e733c-1d7e-40d2-aa61-1ce9ec671248" />
Error Messages/Logs
No error messages displayed, that's part of the problem. I'm personally aware that the AWS auth failed, but Claude Code itself becomes unresponsive with no indication of what went wrong, or attempts to self-heal.
Steps to Reproduce
Steps to Reproduce
- Configure Claude Code to use AWS Bedrock as the API provider
- Start a session and use Claude Code normally
- Wait for AWS SSO session to expire (or manually invalidate it)
- Send a message to Claude
- Claude Code attempts to authenticate, fails, and becomes unresponsive
- Try selecting "go ahead", "resume", or "try" suggestions - no response
- Only way to recover is Ctrl-C twice and restart Claude Code
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Not sure exact version
Claude Code Version
2.1.31 Claude Code
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Screenshot attached shows the unresponsive state.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗