{"version":"2.1.328","anchor":"goal-condition-now-takes-precedence-over-stop-hook-prompt-on","canonical_anchor":"goal-condition-now-takes-precedence-over-stop-hook-prompt-on","heading":"Clearing now uses the goal's condition before the Stop hook's prompt","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/goal-condition-now-takes-precedence-over-stop-hook-prompt-on","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Clearing now uses the goal's condition before the Stop hook's prompt\n\nWhen both a goal and a Stop hook prompt exist, clearing now takes the stop condition from the goal first\n\n**What**\n\nA goal is a target you set for Claude to work towards. A Stop hook is a rule that runs when Claude finishes responding. Both can hold a condition for when Claude should stop. When these are cleared, Claude Code now takes that condition from the active goal first, and uses the session's Stop hook prompt only if there is no goal. The order used to be the other way round.\n\n**Why**\n\nIf a session has both a goal and a Stop hook, this changes which condition gets cleared.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}