The remote-control bridge now wires an onBackgroundTasks callback into session setup, alongside existing hooks like onDialogKindsDeclared, so background task state can be reported to remote control/bridge clients. A new background_tasks control_request subtype lets an external caller background a running local shell tool by tool_use_id, and remote clients can query or clear background task state via the task registry.
Names in the bundlebackground_tasksonBackgroundTasks
Documented inclaude-code/agent-sdk/typescript
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Hooks reference touched a line naming background_tasks after this was published.
In addition to the [common input fields](#common-input-fields), Stop hooks receive `stop_hook_active`, `last_assistant_message`, `background_tasks`, and `session_crons`. The `stop_hook_active` field is `true` when Claude Code is already co…hooks see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Hooks reference touched a line naming background_tasks after this was published.