{"version":"2.1.333","anchor":"plugin-hooks-get-turn-abort-and-background-calls-hook-ops-a","canonical_anchor":"plugin-hooks-get-turn-abort-and-background-calls-hook-ops-a","heading":"Plugin hooks can stop a turn or move it to the background","tier":"internal","area":"Plugin Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-hooks-get-turn-abort-and-background-calls-hook-ops-a","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugin hooks can stop a turn or move it to the background\n\nPlugin hooks gain `$.turn.abort` and `$.turn.background`, and asking for some plugin abilities now implies the ones they depend on\n\n**What**\n\nA hook is a point where a plugin's own code runs during a session. A turn is one round of Claude working on your message. Plugin hooks get two new calls:\n\n- `$.turn.abort`: stops a turn.\n\n- `$.turn.background`: moves a turn into the background.\n\nClaude Code checks these calls against the turn that the hook was told about when that turn started.\n\nPlugins also have to declare which abilities they use. Declaring certain abilities, such as `fs.copy` or `model.stream`, now also counts as declaring the other abilities they rely on.\n\n**Why**\n\nPlugin authors get more control over a running turn, and fewer surprises when one ability quietly needs another.\n\n- Area: Plugin Hooks\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}