opencode
opencode copied to clipboard
feat(hook): add noReply option to command.execute.before hook
Summary
- Adds
noReply?: booleanto thecommand.execute.beforehook output type - Passes
hookOutput.noReplytoprompt()to skip LLM when set
Use Case
Plugins can handle slash commands directly without invoking the LLM.
Verification
Tested with a plugin that handles /tty commands. Setting output.noReply = true in the hook skips LLM invocation and the command output is displayed directly.
Fixes #9306