amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

bug: Agent Edit / Create command fails when EDITOR is set multi-arg command e.g., 'emacsclient -nw'

Open manishmv79 opened this issue 1 year ago • 1 comments

Checks

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


manishmv79 avatar Oct 06 '25 08:10 manishmv79

Thanks for contributing and fixing the bug! Really appreciate it.

evanliu048 avatar Oct 10 '25 21:10 evanliu048