-
Notifications
You must be signed in to change notification settings - Fork 425
Kiro CLI 1.28.2 on Linux: profileArn missing after Google login, chat auth fails with Builder ID too #3707
Copy link
Copy link
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 doctorin the affected terminal session - I have run
q restartand replicated the issue again
Operating system
Linux 6.19.6+parrot7-amd64 - Parrot Security 7.1 (echo)
Expected behaviour
After a successful login, Kiro CLI should attach a usable profile/session to the CLI and allow interactive chat requests to work normally.
Specifically:
- Google login should result in a usable profile being available to the CLI
kiro-cli whoamishould show the account/profile information needed for chat- entering a prompt in interactive chat should succeed
- Builder ID / free login should also produce a valid chat session after successful authentication
Actual behaviour
Note: I am using kiro-cli, not q.
For the template checks, I ran the Kiro equivalents:
kiro-cli doctor --all- repeated logout/login
- reproduced the issue again in a fresh CLI session
I did not run q restart literally, because this issue is occurring in kiro-cli.
I am seeing two separate auth failures on Linux with kiro-cli 1.28.2.
- Google login path:
kiro-cli loginsucceeds- interactive CLI starts
/usagefails with:
profileArn is required but no profiles are available. Please log in and select a profile.- normal prompts like
hellofail with the sameprofileArn/ no profiles error
- Builder ID / free login path:
kiro-cli logout- remove
~/.local/share/kiro-cli/data.sqlite3 kiro-cli login --license free --use-device-flowsucceedskiro-cli whoami --format json-prettyreturns:
{"accountType":"BuilderId","email":null,"region":"us-east-1","startUrl":null}kiro-cli chat --list-modelsworks- interactive chat still fails when I type a prompt such as
test - error shown:
Authentication failed. Your session may have expired. Run 'kiro-cli login' to re-authenticate.
So authentication appears to complete, but interactive chat remains unusable.
Steps to reproduce
This reproduces consistently.
Case 1: Google login / missing profileArn
- Run
kiro-cli logout - Run
kiro-cli login - Complete Google sign-in successfully
- Run
kiro-cli - Run
/usageor typehello - Observe:
profileArn is required but no profiles are available
Case 2: Builder ID / free login / chat auth failure
- Run
kiro-cli logout - Run
rm -f ~/.local/share/kiro-cli/data.sqlite3 - Run
kiro-cli login --license free --use-device-flow - Complete browser/device authorization successfully
- Run
kiro-cli whoami --format json-pretty - Run
kiro-cli chat --list-models - Run
kiro-cli - Type
test - Observe:
Authentication failed. Your session may have expired. Run 'kiro-cli login' to re-authenticate.
Additional notes:
kiro-cli doctor --allwas run- issue reproduces after fresh logout/login
- issue reproduces after deleting local CLI state
- IDE works, but CLI interactive chat does not
Environment
<This will be visible to anyone. Do not include personal or sensitive information>
[q-details]
version = "1.28.2"
hash = "27868a6e6508e32a80d15e6eba2f6adbab6c2aa7"
date = "2026-03-27T00:12:46.489292Z (4d ago)"
variant = "minimal"
[system-info]
chip = "AMD Ryzen 5 7520U with Radeon Graphics"
total-cores = 4
memory = "14.87 GB"
[system-info.os.linux]
kernel_version = "6.19.6+parrot7-amd64"
id = "debian"
name = "Parrot Security"
pretty_name = "Parrot Security 7.1 (echo)"
version_id = "7.1"
version = "7.1 (echo)"
[environment]
cwd = "/home/USER/repos/shadowcheck-web"
cli-path = "/home/USER/repos/shadowcheck-web"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.2.37"
terminal = "Konsole"
install-method = "unknown"
[env-vars]
DISPLAY = ":0"
PATH = "/home/USER/.npm-global/bin:/home/USER/.local/bin:/snap/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "KDE"
XDG_SESSION_DESKTOP = "plasma"
XDG_SESSION_TYPE = "wayland"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels