[PR #9307] feat(hook): add noReply option to command.execute.before hook #13064

Open
opened 2026-02-16 18:17:56 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9307

State: open
Merged: No


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9307 **State:** open **Merged:** No --- ## 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
yindo added the pull-request label 2026-02-16 18:17:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13064