{"version":"2.1.328","anchor":"prompt-hook-equality-now-also-compares-a-third-attribute","canonical_anchor":"prompt-hook-equality-now-also-compares-a-third-attribute","heading":"Two prompt hooks must now match on one more detail to count as the same","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/prompt-hook-equality-now-also-compares-a-third-attribute","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Two prompt hooks must now match on one more detail to count as the same\n\nClaude Code now checks one more detail before treating two prompt hooks as identical, so hooks that differ in it are kept apart\n\n**Unclear.** Which detail of a prompt hook is now compared, and so which near-identical hooks will now both be kept, is not stated.\n\n**What**\n\nA hook is a rule you set up so that something runs automatically at a certain point in a session. A prompt hook is one that sends a piece of text to the model. Claude Code used to treat two prompt hooks as the same hook when their prompt text and their other shared details matched. It now also compares one more detail, so two prompt hooks that differ only in that detail count as different hooks.\n\n**Why**\n\nThis changes when Claude Code decides two prompt hooks are duplicates of each other.\n\n- Area: Hooks\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}