Skip to content

Conversation

@kensave
Copy link
Contributor

@kensave kensave commented Oct 6, 2025

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

#3104)

* fix(agent): Parse EDITOR environment variable to agent edit/create commands

Fix bug where 'q agent edit', '/agent edit', 'q agent create' and
'/agent create' commands failed when EDITOR contained arguments
(e.g., 'emacsclient -nw'). The commands were passing the entire
string to Command::new() which expects only the executable name.

Now using shlex::split() to properly parse the command and arguments,
matching the implementation in the /editor chat command.

🤖 Assisted by Amazon Q Developer

* Fixed formatting issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants