[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:

  1. Display a clear error message explaining the auth failure
  2. Automatically retry with exponential backoff, OR
  3. Prompt the user to re-authenticate (e.g., "AWS session expired. Run aws sso login and press Enter to retry")
  4. 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

  1. Configure Claude Code to use AWS Bedrock as the API provider
  2. Start a session and use Claude Code normally
  3. Wait for AWS SSO session to expire (or manually invalidate it)
  4. Send a message to Claude
  5. Claude Code attempts to authenticate, fails, and becomes unresponsive
  6. Try selecting "go ahead", "resume", or "try" suggestions - no response
  7. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗