aws / aws/amazon-q-developer-cli
/agent generate command fails with no such file or directory
- 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.6.87.2-microsoft-standard-WSL2 - Arch Linux
### Expected behaviour
After running `/agent generate` and filling in the prompts, an agent file would be generated for me.
### Actual behaviour
```
2% > /agent generate
✔ Enter agent name: · dotnet
✔ Enter agent description: · dotnet development
✔ Agent scope · Local (current workspace)
Failed to execute command: Failed to open editor: No such file or directory (os error 2)
```
I also noted that I am unable to select global for a workspace. Pressing the arrow down does nothing.
### Steps to reproduce
1. Run `/agent generate`
2. Fill in an agent name
3. Fill in an agent description
4. Select Local for scope and click enter
5. There is a pause for about 10 seconds and then the `Failed to execute command` error is displayed
### Environment
```yaml
[q-details]
version = "1.19.4"
hash = "d1c473eaf5578603895f6d4975536fcb2c043eaa"
date = "2025-11-07T19:10:21.750608Z (5d ago)"
variant = "minimal"
[system-info]
chip = "AMD Ryzen 7 7735U with Radeon Graphics"
total-cores = 8
memory = "7.41 GB"
[system-info.os.linux]
kernel_version = "6.6.87.2-microsoft-standard-WSL2"
id = "arch"
name = "Arch Linux"
pretty_name = "Arch Linux"
build_id = "rolling"
[environment]
cwd = "/home/USER/repos/efs-swivel-api"
cli-path = "/home/USER/repos/efs-swivel-api"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.3.3"
install-method = "unknown"
in-wsl = true
[env-vars]
DISPLAY = ":0"
PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Amazon/AWSCLIV2/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/DarylWalleck/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/DarylWalleck/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/DarylWalleck/AppData/Local/Microsoft/WinGet/Packages/Schniz.fnm_Microsoft.Winget.Source_8wekyb3d8bbwe:/mnt/c/Users/DarylWalleck/AppData/Local/Programs/Azure Data Studio/bin:/mnt/c/Users/DarylWalleck/.dotnet/tools:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/USER/.local/bin:/home/USER/.npm-packages/bin:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools:/home/USER/.dotnet:/home/USER/.dotnet/tools"
QTERM_SESSION_ID = "e680e6cd4a67489ca2aabf347f70b224"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.19.4"
SHELL = "/usr/bin/bash"
TERM = "xterm-256color"
```
Contributor guide
Assessment
This issue has not been assessed yet.