You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Background TasksArea: what it touches
ImprovementsKind: in v2.1.274,
What probably matters to youSection of the release
What
Before killing a background shell command because of a memory-pressure event, Claude Code now checks actual host memory scarcity (reading /proc/meminfo on Linux/WSL, comparing available memory against both a percentage and an absolute floor) instead of reaping almost unconditionally.
More situations now skip a reap: a turn is currently running, delegated agents (subagents) are running, or the session was recently reaped, with deduplicated diagnostic logging explaining why a reap was skipped.
When a background shell is stopped for memory pressure, the explanation shown to the agent now explicitly tells it not to debug or auto-restart the command, to report what happened instead, and to only restart it if the user asks.
The message also tells the agent about the new CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP environment variable, which lets users turn this reaping behavior off entirely.
Why
This avoids killing background commands unnecessarily, stops the agent from reflexively trying to restart a command the system deliberately stopped, and gives users a way to disable the safeguard if it gets in their way.