When removing all hooks from an event, the key was being set to null instead of being deleted. Claude Code expects arrays, not null values, causing startup failures with 'Expected array, but received null'. Changes: - removeHookCommand now deletes the event key when no hooks remain - installClaude cleans up any existing null values from buggy removal - Added tests for null value prevention and cleanup Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9.3 KiB
9.3 KiB