amazon-q-developer-cli
amazon-q-developer-cli copied to clipboard
bug: Agent Edit / Create command fails when EDITOR is set multi-arg command e.g., 'emacsclient -nw'
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
MacOS, Linux
Expected behaviour
When running q agent edit (/agent edit) and q agent create (/agent create) commands fail when the EDITOR is set to a multi-arg command (e.g., emacsclient -nw). Whereas, the corresponding /editor command works.
Actual behaviour
q chat throws the following error:
/agent edit --name code
Failed to execute command: No such file or directory (os error 2)
Steps to reproduce
export EDITOR='emacsclient -nw'
/agent edit --name code
Environment
Thanks for contributing and fixing the bug! Really appreciate it.