What
A background task is work Claude Code keeps running while the conversation carries on, such as a subagent (a helper agent started for one job). Some of these tasks are ones the session is actively waiting on, marked with an awaited field.
- A change in a task's
awaitedfield now sends abackground_tasks_changedsystem message. Before, change detection only looked as far as theambientfield. - When system messages are handled,
background_tasks_changedentries andtask_startedmessages are now skipped ifawaitedis true. Before, every task was passed on to be tracked, or every task not markedis_backgrounded:false. - Agent launches now also pass
canContinueAgent: !0, meaning true.
Why
Tasks the session is waiting on are no longer counted as background work. Programs built on the SDK (the kit for running Claude Code from your own code) see awaited changes as they happen, and what shows up as background work in the interface may change.