-
-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Did you check the docs?
- I have read all the docs
Is your feature request related to a problem? Please describe.
The configuration option provider.cmd is a string, so if I want to provide a more complex startup command (e.g., opencode --continue) I should write it as a single string.
The problem is that providers like kitty use a table to build up the command to launch (and rightly so), but then this line would cause the following error
opencode --continue failed to start with error: exec: "opencode --continue": executable file not found in $PATH
meaning that opencode --continue is considered a single command and not a command + args.
Describe the solution you'd like
It would be probably a good solution to have provider.cmd either a string or a table so that providers like kitty can append instead of adding to the table. Clearly this will possibly influence other providers as well.
Describe alternatives you've considered
The alternative would be to change the code in the kitty provider by splitting the provider.cmd config on and adding each "word" as a separate element to the table.
This solution is probably simpler but other providers that have the same problem (if any, I haven't checked) won't benefit from it.
Additional context
I might be able to work on this myself if the solution sounds reasonable.