{"version":"2.1.315","anchor":"shell-exit-handling-background-tasks-marked-atexit-leave","canonical_anchor":"shell-exit-handling-background-tasks-marked-atexit-leave","heading":"Background shell commands are now marked to be left alone at exit","tier":"notice","area":"Background Tasks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/shell-exit-handling-background-tasks-marked-atexit-leave","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### Background shell commands are now marked to be left alone at exit\n\nShell commands Claude Code moves to the background are now marked to be left alone when it exits\n\n**Unclear.** Whether background commands now keep running after Claude Code exits is not confirmed.\n\n**What**\n\nWhen Claude Code moves a shell command into the background so it keeps going while Claude does other things, it now marks that command to be left alone when Claude Code exits. Claude Code can also now look up, for its checks at exit, a background process's ID and whether it is still running.\n\n**Why**\n\nIf you start long-running commands in the background, this mark is what decides how Claude Code treats them when the session ends.\n\n- Area: Background Tasks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}