{"version":"2.1.326","anchor":"sdk-hook-messages-gain-hook-origin-details-and-a-backgrounde","canonical_anchor":"sdk-hook-messages-gain-hook-origin-details-and-a-backgrounde","heading":"SDK hook messages say who set up a hook and when it went to the background","tier":"internal","area":"Agents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/sdk-hook-messages-gain-hook-origin-details-and-a-backgrounde","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### SDK hook messages say who set up a hook and when it went to the background\n\nFor SessionStart hooks, SDK hook messages can now say where the hook came from and mark when it moved to the background\n\n**What**\n\nThe SDK lets programs drive Claude Code and receive its messages. A hook is a command you set up to run automatically at a set point. Two hook messages can now carry more:\n\n- `hook_started` gains optional internal fields: `origin` (who set up the hook, for example `user_settings` or `official_plugin`), `label` and `plugin_name`. They are set only for `SessionStart` hooks.\n\n- `hook_progress` can carry an internal `backgrounded: true` flag. It is sent once, with no output, when such a hook moves to the background and the session stops waiting for it.\n\n**Why**\n\nPrograms that read hook messages may now see these extra fields, and can tell when a `SessionStart` hook is no longer holding the session up.\n\n- Area: Agents\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}