aws / aws/amazon-q-developer-cli
Kiro CLI 1.28.2 on Linux: profileArn missing after Google login, chat auth fails with Builder ID too
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
### Checks
- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and 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 whoami` should 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.
1. Google login path:
- `kiro-cli login` succeeds
- interactive CLI starts
- `/usage` fails with:
`profileArn is required but no profiles are available. Please log in and select a profile.`
- normal prompts like `hello` fail with the same `profileArn` / no profiles error
2. Builder ID / free login path:
- `kiro-cli logout`
- remove `~/.local/share/kiro-cli/data.sqlite3`
- `kiro-cli login --license free --use-device-flow` succeeds
- `kiro-cli whoami --format json-pretty` returns:
`{"accountType":"BuilderId","email":null,"region":"us-east-1","startUrl":null}`
- `kiro-cli chat --list-models` works
- 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
1. Run `kiro-cli logout`
2. Run `kiro-cli login`
3. Complete Google sign-in successfully
4. Run `kiro-cli`
5. Run `/usage` or type `hello`
6. Observe:
`profileArn is required but no profiles are available`
Case 2: Builder ID / free login / chat auth failure
1. Run `kiro-cli logout`
2. Run `rm -f ~/.local/share/kiro-cli/data.sqlite3`
3. Run `kiro-cli login --license free --use-device-flow`
4. Complete browser/device authorization successfully
5. Run `kiro-cli whoami --format json-pretty`
6. Run `kiro-cli chat --list-models`
7. Run `kiro-cli`
8. Type `test`
9. Observe:
`Authentication failed. Your session may have expired. Run 'kiro-cli login' to re-authenticate.`
Additional notes:
- `kiro-cli doctor --all` was run
- issue reproduces after fresh logout/login
- issue reproduces after deleting local CLI state
- IDE works, but CLI interactive chat does not
### Environment
```yaml
[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"
```
Contributor guide
Assessment
This issue has not been assessed yet.