-
Notifications
You must be signed in to change notification settings - Fork 202
Open
Description
Checks
- I have searched github.com/aws/amazon-q-developer-cli/issues and there are no duplicates of my issue
- I have run
q doctor
in the affected terminal session - I have run
q restart
and replicated the issue again
Operating system
macOS 14.7.6 (23H626)
Expected behaviour
After Q gets an error due to expired credentials (ExpiredTokenException, RequestExpired, etc), it should stop trying and prompt me to sign in again.
Actual behaviour
After Q gets an error due to expired credentials (ExpiredTokenException, RequestExpired, etc), it keeps making more CLI calls to try and get more information another way.
Steps to reproduce
- Sign in to AWS with a token that will expire in one hour.
- Use Q for more than one hour.
Environment
<This will be visible to anyone. Do not include personal or sensitive information>
[q-details]
version = "1.12.4"
hash = "c20df6ad252618bed22508b33914316ea204af26"
date = "2025-07-09T01:17:19.187047Z (9d ago)"
[system-info]
os = "macOS 14.7.6 (23H626)"
chip = "Apple M3 Pro"
total-cores = 12
memory = "36.00 GB"
[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
install-method = "unknown"
[env-vars]
PATH = "/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/USER:/Users/USER/Library/Python/3.9/bin:/Users/USER/.local/bin"
QTERM_SESSION_ID = "4d4d7f859528463b956bd2ceb498bdaa"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.12.4"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
Metadata
Metadata
Assignees
Labels
No labels