Sessions should pick up refreshed AWS credentials without restart

Resolved 💬 3 comments Opened Feb 7, 2026 by pete-klein-acorns Closed Feb 10, 2026

Problem

When using AWS credentials (especially short-lived session tokens via SSO or STS), Claude Code sessions cache credentials from startup and don't pick up rotated/refreshed tokens. This forces users to restart sessions—losing all context—just because a token expired.

Expected Behavior

The AWS SDK should re-read credentials from the configured source (environment variables, credentials file, SSO cache, etc.) on each API call rather than caching them at session start.

Workaround

Currently the only reliable workaround is restarting the session after refreshing credentials, which defeats the purpose of long-running interactive sessions.

🤖 Generated with Claude Code

View original on GitHub ↗

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