A user discovered that Claude Code's UserPromptSubmit hook, intended to block prompts from reaching the model, still logs these blocked prompts to the session transcript. Despite the hook successfully preventing the prompts from being processed by the model, six out of six tested prompts were written to the transcript, with some appearing twice. This behavior contradicts the documented functionality, which states that blocked prompts should be erased from context and not added to the transcript. AI
IMPACT This bug could impact user trust and data privacy if sensitive information is inadvertently logged despite being blocked.
RANK_REASON The item details a specific bug or unexpected behavior in a software product's feature, rather than a new release or major industry development.
Read on dev.to — Claude Code tag →
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →