amazon-q-developer-cli
amazon-q-developer-cli copied to clipboard
bug: q chat -r resumes with profile you switched out of
Checks
- [x] I have searched github.com/aws/amazon-q-developer-cli/issues and there are no duplicates of my issue
- [x] I have run
q doctorin the affected terminal session - [x] I have run
q restartand replicated the issue again
Operating system
Linux
Expected behaviour
When I switch from some profile test to default, quit the chat, and then resume, I expect the chat to start off with the default profile. Similarly, if I switch from test to default, delete the test profile, quit the chat, and then use q chat -r to resume, I expect to start in the default profile.
Actual behaviour
The actual behavior is the chat resumes with the test profile both when you just switch away from it and when you delete it.
Steps to reproduce
q chat/profile create test/profile set default/quitq chat -r
Environment
[q-details]
version = "1.12.7"
hash = "ed77799a52644ba49a3ed76b15c25cd9334c4b8d"
date = "2025-07-22T17:42:51.034216Z (7d ago)"
variant = "full"
[system-info]
chip = "12th Gen Intel(R) Core(TM) i7-1265U"
total-cores = 6
memory = "15.44 GB"
[system-info.os.linux]
kernel_version = "6.6.87.2-microsoft-standard-WSL2"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 24.04.2 LTS"
version_id = "24.04"
version = "24.04.2 LTS (Noble Numbat)"
[environment]
cwd = "/mnt/c/Users/USER"
cli-path = "/mnt/c/Users/USER"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.2.21"
install-method = "unknown"
in-wsl = true