{"version":"2.1.238","anchor":"prompt-expansion-hooks-can-hide-the-original-prompt-from-a-b","canonical_anchor":"prompt-expansion-hooks-can-hide-the-original-prompt-from-a-b","heading":"Prompt-expansion hooks can hide the original prompt from a block message","tier":"use","area":"Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.238\/e\/prompt-expansion-hooks-can-hide-the-original-prompt-from-a-b","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.238","markdown":"### Prompt-expansion hooks can hide the original prompt from a block message\n\nPrompt-expansion hooks can keep your original prompt text out of the block message.\n\n**What**\n\nHooks 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.\n\n**Details**\n\n- The hook output schema gained the optional boolean alongside `additionalContext`.\n- The consumer copies it onto the hook result along the same path the prompt-submit hook uses.\n- Only takes effect when the hook's decision is `block`.\n\n**Evidence**\n\n`When decision is \"block\", omit the original prompt from the block message`\n\n- Area: Hooks\n- Names: `UserPromptExpansion`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5"}