What
A background task is a command Claude Code keeps running while you carry on working. This release adds a stopsOnExit marker for them:
- Background bash (shell command) tasks, other than monitor tasks, can now be registered with
stopsOnExit: true, meaning they end when Claude Code exits. - Tasks marked
stopsOnExitare skipped when Claude Code builds the list of items still running.
The same findings also note two smaller, separate changes:
- A new
isChatOriginCoworkSessionargument changes when tool output display is forced to "omitted", so it is no longer forced that way for cowork chat sessions. - A new 'compact-held' mode is handled alongside 'compact' when a prompt is built.
Why
Shell commands left running in the background can now be tied to the life of Claude Code, and they no longer clutter the list of running items you are shown.