opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(hook): add noReply option to command.execute.before hook

Open arismoko opened this issue 1 day ago • 1 comments

Summary

  • Adds noReply?: boolean to the command.execute.before hook output type
  • Passes hookOutput.noReply to prompt() 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

arismoko avatar Jan 18 '26 23:01 arismoko