When a session (one run of Claude Code) shuts down, Claude Code can now clean up processes that its tasks left behind. A task can start other programs, and those programs can start more. Claude Code now tracks down these child processes and process groups and stops them in two steps:
- It first sends each one a polite request to stop (
SIGTERM). - After a short grace period, it force-stops any that are still running (
SIGKILL).
This works only on Linux, because it finds the processes by reading the system's /proc directory. The cleanup is controlled by a setting Anthropic can change from its servers. When the servers send nothing, or the lookup fails, it falls back to on.
Background tasks and the programs they started are more likely to be stopped when a session ends, instead of being left running on your machine with nothing watching them.
tengu_tidy_lantern Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.315: on
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.315. It isn't a statement about your account. What a flag value here can and cannot tell you
New in this build: tengu_tidy_lantern