Prompt-expansion hooks can keep your original prompt text out of the block message.
What's wrong with this entry?
Hooks on the UserPromptExpansion event can now return a flag that keeps the user's original prompt text out of the message shown when the hook blocks the prompt. This matches what the prompt-submit hook could already do, and works on this build with no flag to enable.
- The hook output schema gained the optional boolean alongside
additionalContext. - The consumer copies it onto the hook result along the same path the prompt-submit hook uses.
- Only takes effect when the hook's decision is
block.
When decision is "block", omit the original prompt from the block message
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.248
New hook events and compiled-in plugin admission defaults
Both mention user prompt expansion hook
-
v2.1.247
UserPromptSubmit hooks now run over the prompt text that actually wins
Both mention user prompt hook