Skip to content

Q keeps trying to call the AWS CLI after credentials have expired #2335

@ry4n-sc0tt

Description

@ry4n-sc0tt

Checks

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

  1. Sign in to AWS with a token that will expire in one hour.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions