Claude Code Code Mode stops running UserPromptSubmit hooks on script output
From Claude Code 2.1.328, Code Mode no longer runs UserPromptSubmit hooks, managed ones included, on scripts' output. Hooks that redact that output must move to a PostToolUse hook using updatedToolOutput.
What does this mean for me?
Action needed
Engineering leadership
Cost, risk, timeline, team impact Action neededIf your organization redacts sensitive data with managed UserPromptSubmit hooks, that protection no longer covers Code Mode script output from 2.1.328. Have the owner of your Claude Code managed settings move it to a PostToolUse hook before rolling out the upgrade.
Engineer
What to change, what breaks, what to test Action neededPort any UserPromptSubmit hook that filters Code Mode script output to a PostToolUse hook returning updatedToolOutput, and test it on 2.1.328. Note that managed PostToolUse hooks no longer fire for calls refused before they ran.
General consumer
Using the Claude apps, not the API No impactNothing to do: this affects hooks in Claude Code, a developer tool, and does not change the Claude apps.
In Claude Code 2.1.328, Code Mode no longer runs UserPromptSubmit hooks on the output of the scripts it runs. That includes hooks set in managed settings.
An organization that used a UserPromptSubmit hook to filter or redact what reaches the model from Code Mode scripts loses that filtering on upgrade, without an error. The changelog’s stated replacement is a PostToolUse hook that returns updatedToolOutput.
The same release changes managed PostToolUse hooks to no longer fire for tool calls refused before they ran, so a PostToolUse redaction hook sees only calls that actually ran.
The changelog does not date the release. It appeared between the watchlist fetches of 2026-11-18 21:04 UTC and 2026-11-19 21:04 UTC, so the date is approximate.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
UserPromptSubmit | changed | yes | |
PostToolUse updatedToolOutput | changed | no |
Topics: Coding tools