Change8

Claude Code hooks

Component

Updates related to the hooks component of Claude Code.

3 releases14 features17 bug fixesView all Claude Code releases

All HOOKS Features

  • Added `auto:N` syntax for configuring the MCP tool search auto-enable threshold based on context window percentage (0-100).(v2.1.9)
  • Added `plansDirectory` setting to customize the storage location for plan files.(v2.1.9)
  • Enabled external editor support (Ctrl+G) within the AskUserQuestion "Other" input field.(v2.1.9)
  • Added session URL attribution to commits and PRs generated from web sessions.(v2.1.9)
  • Added support for `PreToolUse` hooks to return `additionalContext` to the model.(v2.1.9)
  • Added `${CLAUDE_SESSION_ID}` string substitution for skills to access the current session ID.(v2.1.9)
  • Added a release channel toggle ('stable' or 'latest') accessible via the `/config` command.(v2.1.3)
  • [VSCode] Added a clickable destination selector for permission requests, allowing users to choose where settings are saved (this project, all projects, shared with team, or session only).(v2.1.3)
  • Added source path metadata to images dragged onto the terminal to help Claude understand image origins(v2.1.2)
  • Added clickable hyperlinks for file paths in tool output in terminals that support OSC 8 (like iTerm)(v2.1.2)
  • Added support for Windows Package Manager (winget) installations with automatic detection and update instructions(v2.1.2)
  • Added Shift+Tab keyboard shortcut in plan mode to quickly select "auto-accept edits" option(v2.1.2)
  • Added FORCE_AUTOUPDATE_PLUGINS environment variable to allow plugin autoupdate even when the main auto-updater is disabled(v2.1.2)
  • Added agent_type to SessionStart hook input, populated if --agent is specified(v2.1.2)

All HOOKS Bug Fixes

  • Fixed API errors related to orphan tool_result blocks occurring during long sessions with parallel tool calls.(v2.1.9)
  • Fixed MCP server reconnection hanging when the cached connection promise fails to resolve.(v2.1.9)
  • Fixed Ctrl+Z suspend functionality not working in terminals utilizing the Kitty keyboard protocol (including Ghostty, iTerm2, kitty, and WezTerm).(v2.1.9)
  • Fixed plan files persisting across `/clear` commands, ensuring a fresh plan file is used after clearing a conversation.(v2.1.3)
  • Fixed false skill duplicate detection on filesystems with large inodes (e.g., ExFAT) by implementing 64-bit precision for inode values.(v2.1.3)
  • Fixed mismatch between the background task count displayed in the status bar and the items shown in the tasks dialog.(v2.1.3)
  • Fixed sub-agents using the incorrect model during conversation compaction.(v2.1.3)
  • Fixed web search in sub-agents using the incorrect model.(v2.1.3)
  • Fixed trust dialog acceptance when running from the home directory, ensuring trust-requiring features like hooks are enabled for the session.(v2.1.3)
  • Fixed a command injection vulnerability in bash command processing where malformed input could execute arbitrary commands(v2.1.2)
  • Fixed a memory leak where tree-sitter parse trees were not being freed, causing WASM memory to grow unbounded over long sessions(v2.1.2)
  • Fixed binary files (images, PDFs, etc.) being accidentally included in memory when using @include directives in CLAUDE.md files(v2.1.2)
  • Fixed updates incorrectly claiming another installation is in progress(v2.1.2)
  • Fixed crash when socket files exist in watched directories(v2.1.2)
  • Fixed remote session URL and teleport being broken when using /tasks command(v2.1.2)
  • Fixed MCP tool names being exposed in analytics events by sanitizing user-specific server configurations(v2.1.2)
  • Fixed usage display not updating after manual compact in VSCode(v2.1.2)

Releases with HOOKS Changes

Documentation

Read the hooks documentation