{"version":"2.1.307","anchor":"background-tasks-that-stop-on-exit-are-hidden-from-the-list","canonical_anchor":"background-tasks-that-stop-on-exit-are-hidden-from-the-list","heading":"Background shell tasks can be marked to stop on exit and are hidden from the running list","tier":"notice","area":"Terminal UI","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.307\/e\/background-tasks-that-stop-on-exit-are-hidden-from-the-list","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.307","markdown":"### Background shell tasks can be marked to stop on exit and are hidden from the running list\n\nBackground bash tasks can carry stopsOnExit and are left off the running-items list; also a compact-held mode and a cowork tool-output tweak\n\n**What**\n\nA background task is a command Claude Code keeps running while you carry on working. This release adds a `stopsOnExit` marker for them:\n\n- Background bash (shell command) tasks, other than monitor tasks, can now be registered with `stopsOnExit: true`, meaning they end when Claude Code exits.\n\n- Tasks marked `stopsOnExit` are skipped when Claude Code builds the list of items still running.\n\nThe same findings also note two smaller, separate changes:\n\n- A new `isChatOriginCoworkSession` argument changes when tool output display is forced to \"omitted\", so it is no longer forced that way for cowork chat sessions.\n\n- A new 'compact-held' mode is handled alongside 'compact' when a prompt is built.\n\n**Why**\n\nShell 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.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}