v2.1.49
Claude CodeSummary
This release introduces the ability to edit files directly within Simple Mode and adds a new configuration change hook for enhanced security auditing. Several critical bugs related to keyboard input handling, cache regressions, and unbounded memory growth during long sessions have been resolved. Performance has also been improved across startup and non-interactive modes through better caching and reduced API calls.
New Features
- Enabled direct file editing in Simple Mode (`CLAUDE_CODE_SIMPLE`) by including the file edit tool alongside the Bash tool.
- Added `ConfigChange` hook event that fires when configuration files change during a session, supporting enterprise security auditing and optional blocking of settings changes.
- Enabled SDK model info to include `supportsEffort`, `supportedEffortLevels`, and `supportsAdaptiveThinking` fields for capability discovery.
Bug Fixes
- Fixed Ctrl+C and ESC being silently ignored when background agents are running; pressing twice within 3 seconds now kills all background agents.
- Fixed prompt suggestion cache regression that was reducing cache hit rates.
- Fixed `plugin enable` and `plugin disable` to auto-detect the correct scope when `--scope` is omitted, instead of defaulting to user scope.
- Fixed verbose mode not updating the thinking block display when toggled via `/config` by ensuring memo comparators correctly detect verbose changes.
- Fixed unbounded WASM memory growth during long sessions by periodically resetting the tree-sitter parser.
- Fixed potential rendering issues caused by stale yoga layout references.
- Fixed unbounded memory growth during long-running sessions caused by Yoga WASM linear memory never shrinking.
- Fixed `disableAllHooks` setting to respect managed settings hierarchy, preventing non-managed settings from disabling policy-set managed hooks.
- Fixed the `--resume` session picker showing raw XML tags for sessions starting with commands like `/clear`; it now correctly falls through to the session ID fallback.
Improvements
- Improved performance in non-interactive mode (`-p`) by skipping unnecessary API calls during startup.
- Improved performance by caching authentication failures for HTTP and SSE MCP servers, avoiding repeated connection attempts to servers requiring auth.
- Improved startup performance by caching MCP auth failures to avoid redundant connection attempts.
- Improved startup performance by reducing HTTP calls for analytics token counting.
- Improved startup performance by batching MCP tool token counting into a single API call.
- Improved permission prompts for path safety and working directory blocks to show the reason for the restriction instead of a bare prompt.