{"version":"2.1.335","anchor":"sandboxpermission-and-pre-bundled-api-docs-updates","canonical_anchor":"remote-control-stop-is-attributed-to-its-source","heading":"Stop and interrupt requests now record who sent them","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/sandboxpermission-and-pre-bundled-api-docs-updates","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Stop and interrupt requests now record who sent them\n\nStops and interrupts now carry sentBy, label, source and isSendNow; hooks can also register after a session starts\n\n**What**\n\nWhen a turn is stopped, Claude Code now records where the stop came from:\n\n- A stop from Remote Control now passes `sentBy` and a `label` built from `source` and `isSendNow` when it cancels the turn.\n\n- `cancel` now carries `sentBy` and a `label` with `reason: \"stop\"`, and passes them on to the interrupt.\n\n- In the SDK, the toolkit for building programs on Claude Code, the interrupt request accepts a `label`, and control requests now carry `isSendNow` and `source`.\n\nAlso changed alongside:\n\n- Hooks, code that runs when something happens in a session, can now be registered after the session has started. Claude Code logs `hooked in session.start`, or `late hooks dropped` if it cannot take them. Before, the hook list was fixed when hooks were registered.\n\n- The Claude API skill docs bundled with Claude Code add `shared\/harness-audit.md`.\n\n**Why**\n\nA stopped turn can now be traced back to what stopped it. Plugin authors can register hooks that arrive late instead of having them ignored, and should watch for the `late hooks dropped` message.\n\n- Area: SDK\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}