opencode
opencode copied to clipboard
fix: display error if invalid agent is used in a command
If you use an invalid agent name in a command, the command call just silently fails. With this change we show an error that the agent is not found and hint on what agents are available.
Resolves https://github.com/sst/opencode/issues/6567