hooks
The tracked changes tagged hooks, newest release first. Every sentence is an item's summary.
Goes with
Changes
Claude Code v2.1.332
-
Added a PreSkillShellCommand hook event that can refuse a skill or command's inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start.
-
Fixed a freeze when a permission rule or hook condition with several wildcards was checked against a long command.
-
Fixed freezes and runaway memory use in most cases while a hook prints output without end.
-
Fixed a freeze and context overflow when a hook blocks or fails during a turn or after /compact with a very large log; text over about 50,000 characters is now shortened.
-
Fixed a PreToolUse hook's reason for asking not showing on terminal Read, Grep, Glob, Edit and Write prompts (issues 102892 and 105343).
+2 more
-
Fixed interrupting a turn while a mod's turn.step hook was waiting showing user-cancel as an error instead of Interrupted.
-
A mod's PromptHint hook no longer receives the hint for selected text when the fullscreen footer has a label on its right.
Claude Code v2.1.331
-
[VSCode] Fixed Electron apps and extension tests failing to start; a wrapper, hook or MCP server that runs VS Code as Node must now set ELECTRON_RUN_AS_NODE=1.
-
Fixed a hook's reason to stop a forked skill showing twice.
-
Fixed Stop hooks that read the transcript missing the last reply in Claude Desktop.
-
SubagentStop hooks now wait for the last reply in the transcript.
-
Fixed PermissionRequest hooks not saving Skill(name:*) allow rules outside local settings.
+2 more
-
Changed what a PermissionDenied hook's retry: true tells Claude: make the refused call again only if you asked for that call.
-
[VSCode] Fixed Escape stopping Claude at a Remove or Delete confirmation in MCP, Hooks and Memory dialogs.
Claude Code v2.1.330
-
Self-hosted runner: spawn-runner hooks now start while earlier ones still run, up to --hook-concurrency (4 by default); users whose hooks cannot run side by side must set it to 1.
-
Fixed environment variables written by a SessionStart hook being lost with claude -p --continue.
-
Fixed Edit refusing some valid hook commands in Claude settings files.
-
Self-hosted runners stop a session's start at once, without trying other runners, when a checkout hook exits with status 108.
-
Prompt hooks accept model aliases such as haiku or sonnet in their model field.
Claude Code v2.1.329
-
Code Mode: a PreToolUse hook that errors no longer refuses a script's tool call; hooks that must refuse need onFailure set to block on command, HTTP or MCP tool hooks.
-
Stop and SubagentStop hooks now list a Monitor's script as monitor instead of shell in background_tasks.
-
Trust dialog now warns where a folder's hooks are declared.
-
In Claude Desktop and other non-interactive hosts, the conversation shows a warning when hooks in managed settings fail to load.
-
Fixed another case of claude.ai-synced plugin hooks failing with Plugin directory does not exist while a session runs on macOS.
+1 more
-
Fixed /rename and UserPromptSubmit hook titles in claude remote-control sessions not showing on claude.ai and mobile.
Claude Code v2.1.328
-
Code Mode no longer runs UserPromptSubmit hooks, managed ones included, on scripts' output; to redact that output, use a PostToolUse hook with updatedToolOutput.
-
mcp_tool hooks accept "onFailure": "block", so a hook whose call fails blocks the action, as command and HTTP hooks already do.
-
CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME lets a host stop claude -p --resume and --continue from running a tool call that a hook deferred.
-
claude self-hosted-runner orchestrator gains --hook-label to pass chosen session labels to the spawn-runner hook.
-
claude --environment gains --metadata key=value to label a session for the spawn-runner hook.
+8 more
-
/goal no longer removes a skill's Stop hook or ends early on another hook's result when both have the same wording.
goalhooks -
/hooks keeps your place when going back.
-
Agent hooks no longer run past their timeout while compacting after a request was refused as too large.
-
The self-hosted runner no longer skips its post-session hook when a disk stalls for a few seconds; on a dead disk a session's end can take 25 seconds longer by default.
-
--correlation-id of claude --environment reaches the spawn-runner hook.
-
Managed PostToolUse hooks no longer fire for calls refused before they ran; PostToolBatch receives most of those calls, not marked as refused.
-
A shell command rewritten by a PermissionRequest hook to a sandbox-excluded command runs outside the sandbox.
-
CLAUDE_RUNNER_SESSION_UUID and CLAUDE_CODE_REMOTE_SESSION_UUID are both set for the session and its checkout, post-session and spawn-runner hooks.
Claude Code v2.1.327
-
Added a list in /status of broken agent, skill, command and output style files, keybinding errors, an unavailable sandbox, ignored permission settings and hook matchers that never match.
-
Fixed a turn hanging when a mod's model complete or classify call met a usage limit; the call now receives the API error at once.
-
Fixed cloud sessions giving no error when a UserPromptSubmit hook blocks a message sent while Claude works.
-
Fixed failing hooks showing nothing for SubagentStop in background agents, SessionEnd at /clear and /resume, and CwdChanged and FileChanged in fullscreen.
-
Fixed a Stop hook that failed to run being shown as having reported a problem.
Claude Code v2.1.326
-
A hook's decision of block now holds in more cases, so a hook that always prints it may start blocking calls.
-
Commands in a permission hook or SDK host rewrite stay in the sandbox if the original was checked as sandboxed; the approver can add dangerouslyDisableSandbox: true.
-
HTTP hooks ignore Content-Length and Transfer-Encoding in their headers setting; the request length comes from the body.
-
PreToolUse hooks in managed settings now produce an OpenTelemetry tool_decision event and a permission_denials entry when they refuse a direct tool call.
-
Crashed Node or Python hooks show the full error stack trace, and Ctrl+O shows up to 10,000 characters of output.
+6 more
-
/goal clear or a new /goal now sticks when typed while Stop hooks and background work are running.
goalhooks -
A PreToolUse hook's updatedInput is kept when more than one hook answers a tool call, and the rewrite applies in more cases.
-
The error for a PreToolUse hook exiting with code 127 says its check may not have run.
-
Hook failures, blocks and timeouts show in red, a hook that stops Claude shows in yellow, and the reason appears under them.
-
Key hints in many dialogs and the ? lists show the working keys in one order and wording, and deeper /hooks and /permissions screens say Esc goes back.
-
allowedHttpHookUrls and httpHookAllowedEnvVars apply differently to hooks from managed settings.
Claude Code v2.1.325
-
Changed EnterWorktree to refuse a WorktreeCreate hook path that goes through a symlink inside the project; the hook should print the real path.
-
Changed self-hosted runners to refuse a session whose session folder or repository path is a symbolic link, except a checkout hook's checkout.
-
Fixed --worktree skipping a WorktreeCreate hook from a plugin in CLAUDE_CODE_PLUGIN_SEED_DIR on the first run in a new home directory.
-
Fixed an MCP server staying in needs-authentication, and its mcp_tool hooks being skipped, after a token refresh that was briefly refused.
-
Fixed deny and ask permission rules and hooks for the Artifact tool not applying in some cloud sessions.
Claude Code v2.1.323
-
Changed ripgrep and most internal git commands to run without most sign-in tokens and API keys, so credential helpers or hooks under them no longer find them.
-
Added a progress heartbeat every 30 seconds while hooks run long in claude -p and SDK sessions, so hosts do not treat the turn as hung once they include this version.
-
Fixed HTTP hooks failing with HTTP 500 on Linux when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is set and sandbox.enabled is off.
-
Fixed a Stop pressed right after sending a message showing as an error in remote and SDK sessions while a UserPromptSubmit or plugin prompt hook was running.
-
Fixed text-output claude -p runs printing nothing to stderr when a --plugin-dir mod's hook hangs or crashes the hooks worker.
+7 more
-
Fixed CLAUDE_CODE_RESUME_INTERRUPTED_TURN re-running a turn that a hook's continue false had stopped.
-
Fixed PreCompact, PostCompact, and post-compaction SessionStart hooks not receiving agent_id and agent_type when a subagent compacts.
-
Changed the handling of a tool permission check that errors after a PreToolUse hook returned allow: the call is decided as if no hook had answered.
-
Changed the handling of a permission check that errors on input rewritten by a PermissionRequest hook: Claude Code now asks again, or refuses where nobody can answer.
-
Changed self-hosted runners under --trust-workspace false and VS Code sessions in untrusted folders so repository settings can no longer disable hooks or toggle plugins.
-
Changed tool.list plugin hooks so tools they add or remove apply to the model and every agent.
-
Changed cloud scheduled tasks so a PostToolUse hook from user settings can no longer replace the plan in ExitPlanMode's result.
Gemini CLI Release v0.68.0
-
SubagentStop event mapping is supported and hook definitions are merged.
Claude Code v2.1.321
-
In Cowork cloud sessions, a PostToolUse hook can no longer replace the AskUserQuestion answer or the ExitPlanMode plan; Claude reads the originals.
-
On Windows, FileChanged hooks no longer stop for watchPaths paths after the first shell command when the working directory has a lowercase drive letter.
-
A large hook output no longer points Claude to a file holding another hook's output from the same tool call.
-
Apps embedding Claude Code now get their own PreToolUse hook's ask reason instead of another hook's when both asked.
-
A PreToolUse hook's ask is no longer lost when another hook's defer finished first and could not be honored.
+4 more
-
Remote sessions no longer give no reply after a restart when a UserPromptSubmit hook blocked a replayed permission answer; these hooks no longer run on that replay.
-
PreToolUse mcp_tool hooks on stdio and HTTP MCP servers are no longer skipped when their answer exceeds 16 MiB; the tool call is now refused.
-
NotebookEdit no longer reports success to hooks and telemetry when the edit failed.
-
OpenTelemetry hook events in non-interactive sessions leave two built-in hooks out of num_hooks and num_success after Bash and PowerShell calls.
Claude Code v2.1.319
-
Fixed cloud sessions losing session-scoped deny and ask rules, such as those added by a PermissionRequest hook, when the session moves to a new worker.
-
Fixed self-hosted runners so that --trust-workspace false also stops hooks in the repository's settings files and skills from running.
-
Changed PostToolUse hooks to run, with up to 10 seconds to finish, on tool calls that finish after a new message interrupts the turn.
Codex 0.167.0
-
PreToolUse hooks run before direct Guardian review policy checks.
-
Scoped host metadata hooks are added for MCP tool requests.
-
Pre-tool-use hook handling is extracted into a helper, with no behavior change stated.
Gemini CLI Release v0.67.0
-
Claude hook timeouts are converted from seconds to milliseconds during migration.
Claude Code v2.1.318
-
Fixes variables a Setup hook writes to CLAUDE_ENV_FILE not reaching the Bash tool in some cloud sessions.
-
Adds CLAUDE_RUNNER_SPAWN_REASON to the orchestrator's spawn-runner hook environment, giving why Anthropic sent the request (such as runner_lost or resumed), unset when none was sent.
Claude Code v2.1.317
-
Adds onFailure set to block for Agent SDK hook callbacks, so a callback that fails blocks the action instead of letting it run.
Claude Code v2.1.316
-
Fixed PowerShell hooks not blocking on exit code 2 when the command begins with a type cast, param, using, or an attribute.
Claude Code v2.1.314
-
Fixed a PreCompact hook with very large output making compaction fail or repeat; each hook's output is now cut at 10,000 characters.
-
Fixed hooks matching Bash not running on shell commands started by the Monitor tool; such hooks can block or ask but cannot approve or rewrite those commands.
-
Changed auto mode in Cowork cloud sessions so a hook's allow of an MCP tool call counts as no answer, leaving the classifier or a permission prompt to decide.
-
Changed hook if conditions such as Monitor(tail *) to match Monitor tool shell commands the same way Bash(tail *) matches Bash commands.
-
Fixed the missing spinner and Stop button in VS Code while a queued message's hooks run.
Codex 0.166.0
-
Included environment hooks in thread hook listings.
-
Added scoped request-body secret substitution to MITM hooks.
-
Reported the local command working directory in PreToolUse hooks.
-
Preserved command cwd in permission and post-tool hooks.
Claude Code v2.1.312
-
Prompt and agent hooks now run at most 24 at a time per session, sub-agents included, plus at most 12 that have waited longer than their event's timeout; a timeout under 1 second now counts as 1 second.
Codex 0.165.0
-
Emitted prompt telemetry only after hooks accept input.
-
Added support for environment-scoped managed hooks and hook configuration in environment attachments.
Claude Code v2.1.311
-
Fixed SubagentStop hooks running about twice a minute for each running subagent instead of once when it finishes.
-
VSCode: Added a Running UserPromptSubmit hooks spinner status and screen reader announcement for slow UserPromptSubmit hooks.
Claude Code v2.1.310
-
On Windows without Git Bash, PreToolUse and PermissionRequest hooks no longer let a tool call through when the hook's command is only quoted strings, such as a quoted path.
Claude Code v2.1.309
-
Ctrl+Enter (send now) now queues a message when pressed at any point in a response, and no longer restarts a prompt's hooks while leaving the message queued when pressed during hook execution.
-
Hooks running in PowerShell now block when the program exits with code 2, and on Windows PreToolUse and PermissionRequest hooks with shell powershell no longer fail open when Git for Windows is not installed.
-
A mod's turn.step hook that names a model by alias such as haiku now resolves to its model instead of failing every request with a model error.
-
The error for a hooks module nested too deep to load now names the file instead of showing a bare stack-overflow message.
Claude Code v2.1.305
-
Fixed the self-hosted orchestrator reporting a spawn-runner hook as timed out when a runner it started in the background kept its output open.
-
Added a 'Running start-up hooks' spinner status, with a screen reader announcement, shown while SessionStart or Setup hooks run.
Claude Platform Claude Platform release notes — October 20, 2026
-
Inference hooks are now out of beta for Claude Enterprise organizations.
Claude Code v2.1.304
-
Changed skill hooks so the skills of one source (a repo, your own folder, or a plugin) can register at most 1,024 hooks and 16,384 matcher characters per session.
-
Added a transcript line when a plugin that runs first skips one of a mod's hooks, naming the event and the plugin.
-
Fixed a PreToolUse hook's deny reason being replaced by a timeout error when an Agent SDK callback hook on the same tool call timed out.
-
Fixed a skill's once hook also removing another skill's identical hook after it ran.
-
[VSCode] Fixed one cause of sessions failing to start with "Subprocess initialization did not complete within 60000ms": time a SessionStart command hook spends running no longer counts toward the limit, up to 10 minutes in total.
Claude Code v2.1.302
-
Changed prompt and agent hooks so that at most 12 hooks of one event run at a time; the rest wait their turn.
Claude Code v2.1.301
-
Quitting no longer removes a worktree created by a WorktreeCreate hook without asking when it may hold unpushed commits.
-
Artifact updates are no longer refused where a PreToolUse hook covers Edit or Write; Claude now edits the file and then republishes it.
-
Skills, commands, and hooks no longer use very large amounts of memory when their arguments fill many placeholders.
-
Switching to a model whose name contains application-inference-profile no longer runs the awsAuthRefresh command or delays model-switch hooks when the provider is not Bedrock.
-
The permission prompt for a plugin or skill hook's ask decision now shows which plugin or skill the hook comes from.
Claude Code v2.1.300
-
In Cowork cloud sessions, a setMode update in a PermissionRequest hook's allow is now ignored while the rest of the approval still applies.
-
updatedInput from PreToolUse and PermissionRequest hooks is now validated like Claude's own input: unknown keys are dropped and input the tool rejects denies the call.
-
The agent.spawn mod hook can now rewrite a workflow agent's prompt and model, where it could previously only refuse workflow agents.
-
Added the prompt.change mod hook, raised when the prompt box text changes without a typed edit, such as a recalled history entry, a clear, an undo, or a plugin fill.
-
SessionEnd hooks now run when exiting while a background command is still running.
+2 more
-
Plugin WorktreeCreate and WorktreeRemove hooks now run when Claude Code starts with --worktree (not yet with --tmux).
-
Agent hooks now honor their model setting: aliases like haiku resolve, subagent models no longer override it, and an unavailable model falls back to the caller's model instead of allowing the action.
Claude Code v2.1.299
-
Changed plugin hooks and workflow scripts to refuse returned values nested deeper than 28,000 levels; workflow scripts previously allowed 100,000.
-
Changed actions a plugin hook can block to be refused when the hook cannot receive them or return its answer; an already-run tool has its result withheld.
-
Changed UserPromptSubmit hooks to run before a skill or custom slash command expands, so a hook that blocks the prompt also stops its embedded shell commands.
-
Added $.prompt.media so a prompt.submit hook of a managed-settings mod can read the bytes of an attached image or document.
-
Added skill frontmatter, source, plugin name and file path to what a mod's skill.prompt hook receives.
+15 more
-
Added a queue door to the session.append mod hook so a mod can make transcript queue records differ from the prompt as sent.
-
Fixed Edit and Retry in Cowork and claude.ai cloud sessions failing on a message stopped while its UserPromptSubmit or prompt.submit hooks were running (regression in 2.1.296).
-
Fixed a mod's prompt.submit rewrite being silently dropped for some prompts with a pasted image or unreadable image, sending the prompt as typed.
-
Fixed a Remote Control prompt that had passed its hooks being dropped from prompt history when Stop interrupted the next queued prompt's hook.
-
Fixed a mod hook, with or without .catch, running again without end when it waits on another mod's noun that does its work outside the call.
-
Fixed plugin hooks being skipped when they pass a very deeply nested tool input or message on with next().
-
Fixed a mod hook's value being refused whole when a getter throws a RangeError; now only that key is refused.
-
Fixed mods' hooks receiving values with __proto__ keys silently removed, which could skip a tool.check guard on another mod's tool call.
-
Fixed the agent.spawn mod hook not running when a finished subagent or killed teammate is resumed; the event now carries resume and a mod can refuse it.
-
Fixed plan mode running a write (MCP, file or shell) that a PreToolUse hook or a mod's tool.check hook allowed.
-
Fixed a user-installed mod's $.env.set changing the environment or shell prefix that managed-settings command hooks start with.
-
Windows: Fixed PreToolUse and PermissionRequest hooks without a shell failing open when Git for Windows is not installed; a failing guard now blocks the call.
-
Changed auto mode in Cowork cloud sessions so a PermissionRequest hook can no longer approve shell commands or subagents; those prompts wait or are denied.
-
Changed a skill's front-matter UserPromptSubmit hook to first run on the prompt after the one that invokes the skill.
-
Changed the turn.start mod hook to also fire for subagents' and teammates' turns; they are distinguished by e.agentId, which is absent on the main loop.
Claude Code v2.1.296
-
Added a note in /plugin on a plugin whose hooks are left out because another enabled plugin has the same name.
-
Fixed managed-settings PreToolUse hooks that deny a tool call with continue: false, and managed prompt hooks that block one, so they refuse the call without ending the turn.
-
Fixed PostToolUse hooks in managed settings not applying updatedMCPToolOutput in some sessions.
-
Fixed hook output being altered when it contained text resembling a plugin hint tag.
-
Fixed Esc or an interrupt during a UserPromptSubmit hook or a mod's prompt.submit hook ending headless sessions, clearing the typed prompt, or letting the unchecked prompt through.
+6 more
-
Fixed SessionStart hooks of a plugin loaded after a headless session starts being skipped when a different plugin with the same name, or another spelling of it, had already run.
-
Fixed a plugin's served $ methods running in the main session's working directory instead of the calling agent's, and ignoring the turn their calling hook holds.
-
Fixed a prompt sent while SessionStart hooks were still running vanishing when the session moved to the background; it is still not sent, but the up arrow now brings it back.
-
Fixed a late-loading plugin's SessionStart hook output reaching the new conversation after /clear in headless sessions.
-
Fixed PowerShell commands not seeing variables that hooks write to CLAUDE_ENV_FILE when the file holds only plain assignments.
-
Improved --debug output for hooks so command hooks on tool calls, prompts, SessionStart and Stop log their command, plugin, outcome and duration when they finish.
Claude Code v2.1.295
-
Added onFailure: "block" for command and HTTP hooks so that a hook that cannot start, times out, or exits with an unexpected code blocks the action.
-
Fixed a mod hook receiving a deeply nested tool input cut short without error, which let a guard pass content it never saw.
-
Fixed commands and hooks in background sessions inheriting FORCE_COLOR=3, which put color escape codes into output Claude reads.
-
Fixed mod calls made during a plugin hooks worker restart getting past another mod's guard hook that has a .catch; such calls are now refused.
-
Fixed plugins whose hooks module nests code thousands of levels deep failing with a bare stack-overflow message.
+9 more
-
Fixed claude plugin test passing a session.append hook that removes blocks a real session keeps.
-
Fixed an async SessionStart hook's unchanged context being added to the conversation again on every resume.
-
Fixed variables a SessionStart hook writes to CLAUDE_ENV_FILE not reaching the Bash tool after in-app /resume or /branch.
-
Fixed an async hook's JSON output being ignored when printed over several lines.
-
Fixed a plugin adding very large interfaces getting another plugin unloaded when the plugin hooks worker stalls.
-
Fixed claude.ai-synced plugin hooks failing with Plugin directory does not exist in long sessions after another session synced an update.
-
Improved claude plugin validate and plugin loading errors for a hooks module refused over a rebound top-level var, naming the line, cause and fix.
-
Changed the wording shown to Claude and the user when a mod denies a tool call after the tool ran: it now says the tool ran and the plugin withheld its result.
-
Fixed web searches and agent hook evaluations taking much longer at xhigh and max effort.
Claude Code v2.1.294
-
Fixed prompt and agent hooks written as instructions (such as "Block commands that...") allowing commands they should block.
-
Changed how prompt hooks on Stop and SubagentStop written as instructions are judged so Claude is less likely to stop early.
Claude Code v2.1.293
-
Fixed a mod's hooks on classic.* events being skipped while the plugin hooks worker restarts, which left settings hooks to answer without them.
Claude Code v2.1.292
-
Changed claude plugin test so a failed expect inside a hook the test registered, or a stub answer the engine refuses, now fails the test instead of passing silently.
-
Added a prompt.autocomplete event that mods can hook to add rows to the prompt box autocomplete list.
-
Added workflow agents, with their run and index, to the agent.spawn mod hook so a mod can refuse them.
-
Fixed PreToolUse hook approvals and auto mode bypassing the permission prompt for file reads from UNC network paths.
-
Fixed plugins whose hooks module makes many $.state calls through one const taking minutes to load or validate.
+10 more
-
Fixed a plugin's served $ method restarting the hook origin, which could re-run a guard hook with a .catch above it endlessly.
-
Fixed plugin interface calls made while the plugin hooks worker restarts running without the hooks other plugins attach to them.
-
Fixed a mod's config.set, state.set, env.set or agent.spawn hook that denies after calling next(e) being reported as a refusal; it is now reported as failed, by name.
-
Fixed a mod's start-up prompt, command or subagent being queued a second time when the hooks worker was replaced.
-
Fixed a mod hook that called next(e) and then failed during an interrupted turn letting the call through; the call is now rejected.
-
Fixed a plugin's prompt drop or setting deny being ignored when its reason was longer than 4,096 characters.
-
Fixed tool calls made while the plugin hooks worker restarts being answered without the plugins' permission hooks.
-
Fixed plugin tool.call hooks seeing some tool calls before misnamed parameters were repaired; hooks now see the arguments the tool will run with.
-
Fixed a mod's guard hook with a .catch being skipped silently for calls another mod's hook makes beneath the guard's own $ call; its .catch is now asked.
-
Improved hook output handling so system-reminder tags written in a hook's output are escaped before reaching Claude.
Claude Code v2.1.290
-
An in-process teammate's agent_id in Agent results is now its agent ID (name@team stays in teammate_id), and TeammateIdle hooks no longer fire from its subagents or forks.
-
Added serverToolUses to a mod's turn.step hook result, listing tool calls the API ran itself with id, name, input, start and end.
-
Added agentId to the tool.check event of plugin hooks to distinguish subagent permission checks from the main session's.
-
Added ceiling to the question and verdict read by a mod's tool.check hook, naming the approval an organization requires for a tool.
-
Added ThemeKey and Color types to the plugin hooks typings.
+8 more
-
Fixed a plugin hook with a .catch being unloaded and its .catch skipped when it kept the hooks worker busy.
-
Fixed turn.step results listing tool calls discarded by a mid-response model fallback.
-
Fixed plugin hooks reading an empty answer on turn.complete for subagents reporting back in auto mode.
-
A prompt.submit hook that drops a prompt after calling next(e) is now reported as failed by name.
-
Fixed an endless loop when an async Stop hook passes an unquoted script path containing a space.
-
Permission rules and safety checks now apply after a PreToolUse hook rewrites tool input.
-
Fixed sandboxed Bash on Linux triggering ConfigChange hooks and settings reloads when project settings files don't exist.
-
Plugin hooks now clip and log long text instead of refusing or dropping it.
Claude Code v2.1.289
-
Added agent.spawn for teammates, a single agent id across plugin hook events, and idle and waiting states in $.agent.list().
-
Fixed sessions ending with an unrecoverable interface error when a value written by a mod's ui.render hook made a row throw while drawn; the engine now draws its own row instead.
Claude Code v2.1.288
-
Fixed a plugin's tool.call hook making Bash fail and file searches read the wrong folder in worktree subagents.
-
Fixed idle_prompt notification hooks firing while background agents are still running.
-
Fixed PreToolUse and PermissionRequest hooks being skipped when matching failed or tool input could not be serialized; the call is now blocked.
-
Fixed the InstructionsLoaded hook omitting agent_id and agent_type for subagent file-access loads, and such loads now also report effort.
Claude Code v2.1.287
-
Whole-tool Bash allow rules and allowing hooks now prompt for, rather than run, shell writes to files the file tools refuse such as the Anthropic profile store and host credentials file.
-
Fixed asyncRewake hooks repeatedly waking Claude when the hook script is missing; the broken hook is now reported once.
-
Fixed SessionStart hooks from synced plugins not running in new cloud sessions.
-
Fixed hook counts in the transcript and debug log including internal callbacks, so one configured hook no longer shows as two.
Claude Code v2.1.286
-
Fixed API 400 errors after a tool or hook returned an object, number or boolean instead of text, including in resumed sessions.
-
The closing line of a /hooks detail screen now says "this hook" instead of "it".
-
/hooks now opens on one list of configured hooks grouped by event, so viewing a hook takes one Enter instead of three.
Claude Code v2.1.285
-
Fixed hooks and SDK permission callbacks seeing a missing or outdated plan on ExitPlanMode when the plan was written in the same response.
-
Fixed synchronous hooks hanging while a background process started by the hook kept its output open.
-
Fixed a cancelled shell command or hook still starting and running to completion when the cancel arrived during setup.
-
Fixed a hook's reason for blocking or stopping a prompt disappearing in VS Code after a window reload.
Claude Code v2.1.284
-
Fixed the debug log dropping failed hooks' stderr when stdout was also written and logging nothing for failed hooks without output; failed hooks now log their status code.
-
Fixed {"decision":"block"} from Elicitation and ElicitationResult hooks being ignored; it now declines the MCP elicitation like exit code 2.
Claude Code v2.1.282
-
Fixed the prompt's example text flashing and disappearing at startup in projects with a SessionStart hook.